Her husband's name is ‘Imrân who is the father of Maryam. When she fell pregnant, she took a vow that when she gives birth to the child she will keep him free for the service of the musjid. That is, she will not allow him to get involved in any worldly activity. She was under the impression that she will give birth to a boy because only a boy can be of service to the musjid. At that time, vows of this nature were permissible.
When the time of delivery of the child came, she gave birth to a girl. Out of sadness she said: "O Allah! I have given birth to a girl." She was informed that this girl will be better than boys and that Allah has accepted her. She kept the name of this child Maryam and made a du‘â to Allah that He should protect her and her progeny from shaytân. Rasûlullâh sallallâhu ‘alayhi wa sallam said that shaytân torments every child that is born. However, he was unable to torment Maryam and ‘Îsâ ‘alayhimas salâm.