إِذْ نَادَىٰ رَبَّهُۥ نِدَآءً خَفِيًّا ﴿3﴾ قَالَ رَبِّ إِنِّى وَهَنَ ٱلْعَظْمُ مِنِّى وَٱشْتَعَلَ ٱلرَّأْسُ شَيْبًا وَلَمْ أَكُنۢ بِدُعَآئِكَ رَبِّ شَقِيًّا ﴿4﴾ وَإِنِّى خِفْتُ ٱلْمَوَٰلِىَ مِن وَرَآءِى وَكَانَتِ ٱمْرَأَتِى عَاقِرًا فَهَبْ لِى مِن لَّدُنكَ وَلِيًّا ﴿5﴾ يَرِثُنِى وَيَرِثُ مِنْ ءَالِ يَعْقُوبَ ۖ وَٱجْعَلْهُ رَبِّ رَضِيًّا ﴿6﴾
3 When he cried unto his Lord a cry in secret, 4 Saying: My Lord! Lo! the bones of me wax feeble and my head is shining with grey hair, and I have never been unblest in prayer to Thee, my Lord. 5 Lo! I fear my kinsfolk after me, since my wife is barren. Oh, give me from Thy presence a successor 6 Who shall inherit of me and inherit (also) of the house of Jacob. And make him, my Lord, acceptable (unto Thee).
Maryam 19:3–6 on Quran.com · Pickthall’s translation
When the scholars list the manners of dua, there are outward ones: having wudu, facing the qiblah, asking after prayer. Then there are inward ones: repentance, giving some charity first. At the top of that inward list you always find the same thing. Come to Allah humble, desperate and open. Surah Maryam gives us a whole lesson in that, through the dua of Zakariyya, peace be upon him. The surah calls it a mention of the mercy of your Lord to His servant Zakariyya, when he called out to his Lord in secret (Maryam 19:2 to 19:3).
Zakariyya was the imam of the believers in Jerusalem. He had served the religion and the people his whole life, and he and his wife had never had children. Now he was very old, in his last years, and he was worried. Not about a family business, and not only about being lonely. He was worried about who would carry the faith after him: I fear for those who will come after me, and my wife is barren, so grant me from Yourself an heir, who will inherit from me and from the family of Yaqub (Maryam 19:5 to 19:6).
Listen to how he opens. My Lord, my bones have grown weak, and my head is ablaze with grey (Maryam 19:4). The image is of hair turned white like a flame, like a field after a fire has burnt through it. He hides nothing. With people we always hedge. We say “don’t worry about it, I’m fine” because we are afraid of looking needy. No one likes to be surrounded by needy people, except Allah. He loves your neediness, because He wants to give, and He wants nothing back.
Then Zakariyya turns. He has listed every reason this should not happen: old bones, white hair, a wife who cannot bear children. If you make dua only by talking about yourself, you will arrive at the same place: I do not deserve this. So he stops talking about himself and starts talking about his Lord: and never, my Lord, have I been disappointed in calling on You (Maryam 19:4). This is the lesson. When you call on Allah, do not dwell on you. Dwell on Him. To Allah belong the most beautiful names, so call on Him by them (al-A’raf 7:180).
The same moment is shown from another angle in Surah al-Anbiya: My Lord, do not leave me alone, and You are the best of inheritors (al-Anbiya 21:89). Then Allah tells us what kind of people they were. They used to hasten to good deeds, and call on Us in hope and in fear, and they were humble before Us (al-Anbiya 21:90). Their dua did not come out of nowhere. They were connected to Allah in good times, so He was there for them in hard ones.
Notice the two feelings in that verse: hope and fear. The fear meant here is not fear of spiders or heights. It is the fear of losing Him. Think of a small child who has lost sight of their parent in a crowd, scanning every face, running to someone in a similar coat and finding it is not them. That is the fear that belongs in dua, held together with the hope of someone calling on the One who can answer anything.
Allah answered. He gave Zakariyya a son, Yahya, a name no one had carried before (Maryam 19:7), and made him gentle, pure and devoted (Maryam 19:13). So ask Allah, and do not hold back. Doctors, rules and statistics may all say it cannot happen. Allah created the doctor, the rule and the statistic. Whatever He gives, He gives perfectly: what you need, how you need it, when you need it. For more prayers like this one, see the duas from the Quran, or explore the Surah Maryam map.