[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.'"
قَالَ رَسُولُ اللهِ ﷺ إِنَّ النُّطْفَةَ تَكُونُ فِي الرَّحِمِ أَرْبَعِينَ يَوْمًا عَلَى حَالِهَا لَا تَغَيَّرُ فَإِذَا مَضَتِ الْأَرْبَعُونَ صَارَتْ عَلَقَةً ثُمَّ مُضْغَةً كَذَلِكَ ثُمَّ عِظَامًا كَذَلِكَ فَإِذَا أَرَادَ اللهُ أَنْ يُسَوِّيَ خَلْقَهُ بَعَثَ إِلَيْهَا مَلَكًا فَيَقُولُ الْمَلَكُ الَّذِي يَلِيهِ أَيْ رَبِّ أَذَكَرٌ أَمْ أُنْثَى؟ أَشَقِيٌّ أَمْ سَعِيدٌ؟ أَقَصِيرٌ أَمْ طَوِيلٌ؟ أَنَاقِصٌ أَمْ زَائِدٌ؟ قُوتُهُ وَأَجَلُهُ؟ أَصَحِيحٌ أَمْ سَقِيمٌ؟ قَالَ فَيَكْتُبُ ذَلِكَ كُلَّهُ فَقَالَ رَجُلٌ مِنَ الْقَوْمِ فَفِيمَ الْعَمَلُ إِذَنْ وَقَدْ فُرِغَ مِنْ هَذَا كُلِّهِ؟ قَالَ اعْمَلُوافَكُلٌّ سَيُوَجَّهُ لِمَا خُلِقَ لَهُ