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.
quran:77:21

And We placed it in a firm lodging  

then lodged it in a secure abode, that is, the womb,
القرآن:٧٧:٢١

فَجَعَلْنَاهُ فِي قَرَارٍ مَكِينٍ  

{فجعلناه في قرار مكين} حريز وهو الرحم.

See similar narrations below:

Collected by Qurʾān
quran:23:13

Then We placed him as a sperm-drop in a firm lodging.  

Then We made him, namely, man, the progeny of Adam, a drop, a sperm-drop, in a secure lodging, which is the womb.
القرآن:٢٣:١٣

ثُمَّ جَعَلْنَاهُ نُطْفَةً فِي قَرَارٍ مَكِينٍ  

{ثم جعلناه} أي الإنسان نسل آدم {نطفةّ} منياً {في قرار مكين} هو الرحم.