Commentary:
In the religious code of earlier prophets, there was a method of worship through which a child, out of one's children, could be freed from all worldly services and devoted exclusively for Allah. Following this practice, the mother of Sayyidah Maryam made a vow during her pregnancy that she would let the newborn serve بیت المقدس Baitul-Maqdis in the way of Allah and that she would not put the child on worldly chores. Sayyidah Maryam's mother thought that she will deliver a male child. But, when she delivered a girl, she was full of remorse thinking that a girl would not be able to do this duty. But Allah Almighty, out of His consideration for the sincerity of Sayyidah Maryam's mother, accepted that very girl and thereby made her status distinct from any other girl of the world.
From here we learn that a mother holds a certain measure of guardianship over her child in respect of his or her education and training, for Sayyidah Maryam's mother would have never vowed if the mother had no right of guardianship over her child. Similarly, it proves that a mother too has the right to give a name to her child. (a1-Jassas)