[Machine] I heard the Messenger of Allah ﷺ or the Messenger of Allah ﷺ say that the angel enters the womb after it settles in the uterus for forty nights, or Sufyan said once or forty-five nights, and the angel says, "O Lord, is it a male or a female? Is it blessed or miserable?" Allah, the Almighty and Exalted, says, "Write down." So they write down its deeds, its lifespan, its fate, and its provision. Then the scroll is folded, and nothing is added or subtracted from what is in it.
سَمِعْتُ رَسُولَ اللهِ ﷺ أَوْ قَالَ رَسُولُ اللهِ ﷺ يَدْخُلُ الْمَلَكُ عَلَى النُّطْفَةِ بَعْدَمَا تَسْتَقِرُّ فِي الرَّحِمِ بِأَرْبَعِينَ لَيْلَةً وَقَالَ سُفْيَانُ مَرَّةً أَوْ خَمْسٍ وَأَرْبَعِينَ لَيْلَةً فَيَقُولُ يَا رَبِّ مَاذَا أَشَقِيٌّ أَمْ سَعِيدٌ؟ أَذَكَرٌ أَمْ أُنْثَى؟ فَيَقُولُ اللهُ تَبَارَكَ وَتَعَالَى فَيَكْتُبَانِ فَيَقُولَانِ مَاذَا؟ أَذَكَرٌ أَمْ أُنْثَى؟ فَيَقُولُاللهُ ﷻ فَيَكْتُبَانِ فَيُكْتَبُ عَمَلُهُ وَأَثَرُهُ وَمُصِيبَتُهُ وَرِزْقُهُ ثُمَّ تُطْوَى الصَّحِيفَةُ فَلَا يُزَادُ عَلَى مَا فِيهَا وَلَا يُنْقَصُ