حَدَّثَنَا أَحْمَدُ ، قَالَ : نَا مُقَدَّمٌ قَالَ : نَا عَمِّي الْقَاسِمُ عَنْ عَبْدِ اللهِ بْنِ عُثْمَانَ بْنِ خُثَيْمٍ عَنْ أَبِي الطُّفَيْلِ . عَنْ حُذَيْفَةَ بْنِ أَسِيدٍ قَالَ : سَمِعْتُ رَسُولَ اللهِ -صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ- يَقُولُ : إِذَا وَقَعَتِ النُّطْفَةُ فِي الرَّحِمِ ، فَأَتَى عَلَيْهَا أَرْبَعُونَ لَيْلَةً ، جَاءَهَا الْمَلَكُ ، فَقَالَ : يَا رَبِّ ، أَذَكَرٌ أَمْ أُنْثَى ؟ فَيُمْلِي الرَّبُّ عَزَّ وَجَلَّ ، وَيَكْتُبُ الْمَلَكُ . فَيَقُولُ : مَا رِزْقُهُ ؟ وَمَا عُمْرُهُ ؟ فَيُمْلِي الرَّبُّ ، وَيَكْتُبُ الْمَلَكُ . وَيَقُولُ : أَشَقِيٌّ أَمْ سَعِيدٌ ؟ فَيُمْلِي الرَّبُّ ، وَيَكْتُبُ الْمَلَكُ . ثُمَّ يَطْوِي الصَّحِيفَةَ .
It is narrated from Sayyiduna Hudhayfah bin Asid (may Allah be pleased with him) that he said: I heard the Messenger of Allah (peace and blessings be upon him) say: "When the drop of semen settles in the womb and forty nights pass over it, the angel comes to it and says: 'O my Lord, is it male or female?' So the Lord, the Mighty and Majestic, dictates, and the angel writes it down. Then he says: 'What is its provision? And what is its lifespan?' The Lord of the worlds dictates, and the angel writes it down. Then he says: 'Is it wretched or blessed?' The Lord, the Mighty and Majestic, dictates, and the angel writes it down; then he rolls up the scroll."