AHMAD 3934:
from ʿAbdullāh b. Masʿūd —
[Machine] I heard the Messenger of Allah ﷺ say, while he is the truthful, the believed: "The development of every one of you is gathered in the womb of his mother for forty nights, then he becomes a clot of blood similar to that, then he becomes a lump of flesh similar to that, then Allah the Almighty sends an angel to him, who says, 'Write down his deeds, his lifespan, and his provision, and whether he will be happy or miserable.' Then the Prophet ﷺ said: "By the One in Whose Hand is the soul of Abdullah, indeed a person performs the deeds of the people of Paradise until there is nothing between him and Paradise except an arm's length, and then what has been written overtakes him, so he starts performing the deeds of the people of the Hellfire and thus enters Hellfire." Then the Prophet ﷺ said: "By the One in Whose Hand is the soul of Abdullah, indeed a person performs the deeds of the people of Hellfire until there is nothing between him and Hellfire except an arm's length, and then what has been written overtakes him, so he starts performing the deeds of the people of Paradise and thus enters Paradise.
أحمد ٣٩٣٤:
عن عبد الله بن مسعود —
سَمِعْتُ رَسُولَ اللهِ ﷺ يَقُولُ وَهُوَ الصَّادِقُ الْمَصْدُوقُ يُجْمَعُ خَلْقُ أَحَدِكُمْ فِي بَطْنِ أُمِّهِ أَرْبَعِينَ لَيْلَةً ثُمَّ يَكُونُ عَلَقَةً مِثْلَ ذَلِكَ ثُمَّ يَكُونُ مُضْغَةً مِثْلَ ذَلِكَ ثُمَّ يَبْعَثُ اللهُ ﷻ إِلَيْهِ مَلَكًا مِنَ الْمَلَائِكَةِ فَيَقُولُ اكْتُبْ عَمَلَهُ وَأَجَلَهُ وَرِزْقَهُ وَاكْتُبْهُ شَقِيًّا أَوْ سَعِيدًا ثُمَّ قَالَ وَالَّذِي نَفْسُ عَبْدِ اللهِ بِيَدِهِ إِنَّ الرَّجُلَ لَيَعْمَلُبِعَمَلِ أَهْلِ الْجَنَّةِ حَتَّى مَا يَكُونُ بَيْنَهُ وَبَيْنَ الْجَنَّةِ غَيْرُ ذِرَاعٍ ثُمَّ يُدْرِكُهُ الشَّقَاءُ فَيَعْمَلُ بِعَمَلِ أَهْلِ النَّارِ فَيَمُوتُ فَيَدْخُلُ النَّارَ ثُمَّ قَالَ وَالَّذِي نَفْسُ عَبْدِ اللهِ بِيَدِهِ إِنَّ الرَّجُلَ لَيَعْمَلُ بِعَمَلِ أَهْلِ النَّارِ حَتَّى مَا يَكُونُ بَيْنَهُ وَبَيْنَ النَّارِ غَيْرُ ذِرَاعٍ ثُمَّ تُدْرِكُهُ السَّعَادَةُ فَيَعْمَلُ بِعَمَلِ أَهْلِ الْجَنَّةِ فَيَمُوتُ فَيَدْخُلُ الْجَنَّةَ
hadithunlocked.com