Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ahmad:3553Hushaym > ʿAlī b. Zayd > Abū ʿUbaydah b. ʿAbdullāh > ʿAbdullāh

[Machine] The Messenger of Allah ﷺ said: "Indeed, the sperm remains in the womb for forty days in its original state without any change. Then, after the forty days, it becomes a clinging clot, then a lump of flesh, and so on. When Allah intends to complete its creation, He sends an angel to it, who asks, 'O Lord, is it a male or a female? Wretched or blessed? Short or tall? Deficient or complete?' Allah then writes all of this down. Then, a man from the people asked, 'What is the role of actions, when all of this has already been decreed?' He (the Messenger of Allah) replied, 'Work. Everyone will be directed towards what he was created for.'"  

أحمد:٣٥٥٣حَدَّثَنَا هُشَيْمٌ أَخْبَرَنَا عَلِيُّ بْنُ زَيْدٍ قَالَ سَمِعْتُ أَبَا عُبَيْدَةَ بْنَ عَبْدِ اللهِ يُحَدِّثُ قَالَ قَالَ عَبْدُ اللهِ

قَالَ رَسُولُ اللهِ ﷺ إِنَّ النُّطْفَةَ تَكُونُ فِي الرَّحِمِ أَرْبَعِينَ يَوْمًا عَلَى حَالِهَا لَا تَغَيَّرُ فَإِذَا مَضَتِ الْأَرْبَعُونَ صَارَتْ عَلَقَةً ثُمَّ مُضْغَةً كَذَلِكَ ثُمَّ عِظَامًا كَذَلِكَ فَإِذَا أَرَادَ اللهُ أَنْ يُسَوِّيَ خَلْقَهُ بَعَثَ إِلَيْهَا مَلَكًا فَيَقُولُ الْمَلَكُ الَّذِي يَلِيهِ أَيْ رَبِّ أَذَكَرٌ أَمْ أُنْثَى؟ أَشَقِيٌّ أَمْ سَعِيدٌ؟ أَقَصِيرٌ أَمْ طَوِيلٌ؟ أَنَاقِصٌ أَمْ زَائِدٌ؟ قُوتُهُ وَأَجَلُهُ؟ أَصَحِيحٌ أَمْ سَقِيمٌ؟ قَالَ فَيَكْتُبُ ذَلِكَ كُلَّهُ فَقَالَ رَجُلٌ مِنَ الْقَوْمِ فَفِيمَ الْعَمَلُ إِذَنْ وَقَدْ فُرِغَ مِنْ هَذَا كُلِّهِ؟ قَالَ اعْمَلُوافَكُلٌّ سَيُوَجَّهُ لِمَا خُلِقَ لَهُ