Her mother's vow
c. 20 BCE · Jerusalem
The wife of 'Imran vowed the child in her womb to the service of Allah, and was given a daughter.
Qur'an: 'When the wife of 'Imran said: My Lord, I have vowed to You what is in my womb, dedicated to Your service, so accept it from me' (3:35).
Qur'an: 'When she delivered her, she said: My Lord, I have delivered a female, and Allah knew best what she delivered, and the male is not like the female. I have named her Maryam, and I seek refuge for her and her offspring in You from Shaytan, the outcast' (3:36).
Scholars: The commentators give her mother's name as Hannah (Hanna) bint Faqudh. She had hoped for a son, since only men served in the Temple. (Ref: al-Tabari, Jami' al-Bayan, on 3:35)
Qur'an references: 3:33–36