The Messenger of Allah ﷺ, the truthful and trusted, told us, "Each one of you has his creation gathered in his mother's womb for forty days, then he becomes a clinging clot for a similar period, then a lump of flesh for a similar period. Then the angel is sent to him and breathes the soul into him, and is commanded with four words, to record his provision, his lifespan, his deeds, and whether he will be wretched or blessed. By the One besides whom there is no god, one of you may perform the deeds of the people of Paradise until there is only a forearm's length between him and it, then what was written overtakes him and he performs the deeds of the people of the Fire and enters it. And one of you may perform the deeds of the people of the Fire until there is only a forearm's length between him and it, then what was written overtakes him and he performs the deeds of the people of Paradise and enters it."
حدثنا أبو بكر بن أبي شيبة حدثنا أبو معاوية ووكيع ح و حدثنا محمد بن عبد الله بن نمير الهمداني واللفظ له حدثنا أبي وأبو معاوية ووكيع قالوا حدثنا الأعمش عن زيد بن وهب
حدثنا رسول الله ﷺ وهو الصادق المصدوق إن أحدكم يجمع خلقه في بطن أمه أربعين يوما ثم يكون في ذلك علقة مثل ذلك ثم يكون في ذلك مضغة مثل ذلك ثم يرسل الملك فينفخ فيه الروح ويؤمر بأربع كلمات بكتب رزقه وأجله وعمله وشقي أو سعيد فوالذي لا إله غيره إن أحدكم ليعمل بعمل أهل الجنة حتى ما يكون بينه وبينها إلا ذراع فيسبق عليه الكتاب فيعمل بعمل أهل النار فيدخلها وإن أحدكم ليعمل بعمل أهل النار حتى ما يكون بينه وبينها إلا ذراع فيسبق عليه الكتاب فيعمل بعمل أهل الجنة فيدخلها