How The Human Being Is Created, In His Mother's Womb, And His Provision, Lifespan And Deeds Are Written Down, And His Misery and Happiness Sahih Muslim 2649 b
Translation
This hadith has been narrated through other chains of transmiters with slight variations of wording.