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:66:12

And ˹the example of˺ Mary, the daughter of 'Imran, who guarded her chastity, so We blew into ˹her garment˺ through Our angel, and she believed in the words of her Lord and His scriptures and was of the devoutly obedient.  

And Mary (wa-Maryama is a supplement to imra’ata Fir‘awna) daughter of ‘Imrān, who preserved ˹the chastity of˺ her womb, so We breathed into it of Our Spirit, namely, Gabriel — when he breathed into the opening of her shirt, by God’s creation of this action of his which reached her womb, thus conceiving Jesus — and she confirmed the words of her Lord, His prescriptions, and His, revealed, Scriptures and she was of the obedient, ˹one˺ of the obedient folk. Meccan, consisting of 30 verses.
القرآن:٦٦:١٢

وَمَرْيَمَ ابْنَتَ عِمْرَانَ الَّتِي أَحْصَنَتْ فَرْجَهَا فَنَفَخْنَا فِيهِ مِنْ رُوحِنَا وَصَدَّقَتْ بِكَلِمَاتِ رَبِّهَا وَكُتُبِهِ وَكَانَتْ مِنَ الْقَانِتِينَ  

{ومريم} عطف على امرأة فرعون {ابنة عمران التي أحصنت فرجها} حفظته {فنفخنا فيه من روحنا} أي جبريل حيث نفخ في جيب درعها بخلق الله تعالى فعله الواصل إلى فرجها فحملت بعيسى {وصدقت بكلمات ربها} شرائعه {وكتبه} المنزلة {وكانت من القانتين} من القوم المطيعين.