Sahih Muslim Book 33, Hadith Number 6405.
Chapter : The growth of a child in the womb of a mother and his destiny in regard to his livelihood, his deeds. both good and evil.
This hadith has been narrated through other chains of transmitters with slight variations of wording.