But Zakariyya said that Allah has appointed him as her guardian...
But Zakariyya said that Allah has appointed him as her guardian, “as my wife is Maryam ’s aunt.” Other scholars said, “You are not, but her mother is a rightful person.” To find out the right person they decided to cast their pens in flowing water. They all were twenty-nine. The pens were very heavy, made up of iron and were used for writing the verses of Torah. They cast their pens in flowing water one by one, Zakariyya also cast his pen. All the pens sank. Only the pen of Zakariyya floated.
The Qur’an further states, “Whenever Zakariyya entered the sanctuary to (see) her, he found with her food. He said, O Maryam! Whence comes this to you? She said, It is from Allah. Surely Allah gives to whom He pleases without measure.” Imam said, “She was not drinking milk but getting her provision from Allah.” Imam al-Baqir said that, many people tried to take charge of Maryam but Zakariyya’s pen remained afloat and he became her guardian. Then Zakariyya brought her in the mosque.
When she came of age, (menstruating), Allah ordered Zakariyya to keep her in a separate part of the mosque. Maryam was a very beautiful lady. When she was standing for prayer the house illuminated with Divine light. Whenever Zakariyya went to see Maryam he found fruits of different seasons with her, when he inquired about the fruits of summer in winter and winter fruits in summer Maryam replied, “It is from Allah.
Surely Allah gives to whom he pleases without measures.” Zakariyya prayed to Allah to grant him a virtuous offspring. According to Imam as-Sadiq Allah revealed to ‘Imran that he would be bestowed with a son, who will give sight to the blind, he will cure the lepers and bring the dead to life with his order. “I will send him as My apostle to the people of The Israelites.” ‘Imran gave the good news to his wife Hanna and she was pregnant.
She thought that Allah has given the good news of a male child. So she decided that she would devote the child (whether boy or girl) in the service of Jerusalem. When Maryam was born, she said, “O Allah! I delivered a female child. And a Prophet can’t be female.” When Allah blessed Maryam with a son ‘Isa it was the fulfillment of His promise to ‘Imran. According to another tradition people asked Imam al-Ridha if Allah had any information about anything, can anyone go against of it?
Imam said, “Yes, in the period of Musa, Allah ordered the Israelites not to enter a holy place. The people obeyed and didn’t enter but their grandsons entered did.