The Quran mentions this as follows: When a woman of Imran said: My Lord!
The Quran mentions this as follows: When a woman of Imran said: My Lord! Surely I vow to Thee what is in my womb, to be devoted (to Thy service); accept therefore from me, surely Thou art the Hearing, the Knowing. So when she brought forth, she said: My Lord! Surely I have brought it forth a female- and Allah knew best what she brought forth- and the male is not like the female, and I have named it Maryam, and I commend her and her offspring into Thy protection from the accursed Shaitan.
So her Lord accepted her with a good acceptance and made her grow up a good growing, and gave her into the charge of Zakaria; [1] When Maryam attained puberty she saw with wonder that she was quite different from other women of the world in that she did not have monthly periods; she was clean throughout the year. Ever since she had reached the age of understanding, she had passed almost all her time in worship.
Her radiant face, her modesty and her symmetrical physique had made her very awful in the eyes of everyone. Her humility and righteousness had become the talk of the [1] Surah Aale Imran 3:35-37 town. Every young and old, man and woman looked at her and referred to her with awful respect. Even the trustees of the Baitul Maqdas, including Zakaria, behaved with her with utmost respect. They considered themselves fortunate to accord respect and honor to Maryam.
When Maryam became major, Zakaria arranged for her a separate room on the first floor of Baitul Maqdas so that she may not have to mingle with males and that she may engage in her devotional occupations with maximum concentration. None was allowed to approach Maryam or to see and talk with her. Only Zakaria could visit her, to look after her requirements.
One day when Zakaria entered the room of Maryam he was stunned to see some fruits before her, which did not appear to be the fruits of this world. He did not say anything. The next day also he observed the same phenomenon. Then he asked, “O Maryam! From where do you get this food?” Maryam replied, “These fruits have come from Almighty God. God grants limitless provision to whomsoever He wishes.” According to the Quran: Whenever Zakaria 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.