الآية رقم (35) - إِذْ قَالَتِ امْرَأَةُ عِمْرَانَ رَبِّ إِنِّي نَذَرْتُ لَكَ مَا فِي بَطْنِي مُحَرَّرًا فَتَقَبَّلْ مِنِّي إِنَّكَ أَنتَ السَّمِيعُ الْعَلِيمُ

(35) - ([Mention, O Muhammad], when the wife of 'Imran said, "My Lord, indeed I have pledged to You what is in my womb, consecrated [for Your service], so accept this from me. Indeed, You are the Hearing, the Knowing.")

The Holy Quran takes us now to what happened with the grandmother of Jesus Christ (PBUH), Virgin Mary’s mother; it’s as if we hear what she says:

( رَبِّ إِنِّي نَذَرْتُ لَكَ مَا فِي بَطْنِي مُحَرَّرًا فَتَقَبَّلْ مِنِّي ) (…My Lord, indeed I have pledged to You what is in my womb, consecrated [for Your service], so accept this from me.): When someone pledges something they do something over what’s been enjoined upon them but of the same nature. Thus, any pledge should be meant for the obedience of the Almighty. Here she pledges to have her born baby consecrated, without any limitations of mundane affairs, to serve the Holy House as she expects to have a male baby born. 

( إِنَّكَ أَنتَ السَّمِيعُ الْعَلِيمُ ) (…You are the Hearing, the Knowing.”): The Hearing means that Allah will respond to the supplication as well.