← Back to postsThe Story of Prophet Zakariyya عليه السلام in the Qur'an

The Story of Prophet Zakariyya عليه السلام in the Qur'an

Published: 22 April 2026

Prophet Zakariyya عليه السلام was a righteous and humble servant of Allah who carried a quiet sadness in his heart: old in age, his hair whitened, his bones weakened, and his wife barren, yet he never stopped turning to Allah with hope and intimate dua. In the Qur’an, Allah highlights Zakariyya’s sincere supplication, his desire not just for a child but for a righteous heir to carry the message of faith, and the miraculous way his dua was answered, making his story a powerful source of comfort for anyone who feels delayed in life or fears being left alone.


رَبِّ لَا تَذَرْنِي فَرْدًا وَأَنتَ خَيْرُ الْوَارِثِينَ

“My Lord, do not leave me alone [with no heir], while You are the best of inheritors.”
-Surah Al‑Anbiyāʾ 21:89

A Blessed Prophet Remembered for Dua and Hope

Zakariyya عليه السلام is mentioned in the Qur’an among the noble prophets whom Allah specially chose, reminding us that closeness to Allah does not mean a life free of worries, but a heart that knows where to turn with those worries. In Surah Al‑An‘ām, Allah lists Zakariyya alongside Dawud, Sulayman, Ayyub, Yusuf, Musa, Harun, and others, showing that he stands in a line of honoured messengers who called people to worship Allah alone, lived lives of humility, and trusted Allah’s decree in every season of life.

Before his famous dua for a child, Zakariyya عليه السلام was already a devoted worshipper, serving in the sacred precincts, remembering Allah often, and caring for Maryam عليها السلام in her private place of worship. His story shows that when a believer remains sincere in worship even while carrying personal pain, Allah turns that hidden pain into a doorway of mercy and answered supplication.

وَزَكَرِيَّا وَيَحْيَىٰ وَعِيسَىٰ وَإِلْيَاسَ ۖ كُلٌّ مِّنَ الصَّالِحِينَ

“And [We guided] Zachariah, John, Jesus, and Elijah—each one of them was of the righteous.”

— Surah Al‑An‘ām 6:85


Blessed Provision and a Dua Inspired by Gratitude

One of the most touching scenes in Zakariyya’s story is his visits to Maryam عليها السلام, whom he was entrusted to care for. Whenever he entered her chamber, he found with her special provision. Foods and fruits that were beyond normal expectation, a sign that Allah grants sustenance from where a person does not imagine.


Surprised, he would ask her where this provision came from, and she would reply that it is from Allah, who provides without limit to whom He wills. Instead of feeling envy or sadness that he himself had no child despite his age and efforts, Zakariyya عليه السلام allowed this moment to awaken fresh hope in his heart. He turned immediately to Allah and made dua, showing that a believer can let other people’s blessings become fuel for their own turning to Allah rather than a cause of jealousy.

كُلَّمَا دَخَلَ عَلَيْهَا زَكَرِيَّا الْمِحْرَابَ وَجَدَ عِندَهَا رِزْقًا ۖ قَالَ يَا مَرْيَمُ أَنَّىٰ لَكِ هَٰذَا ۖ قَالَتْ هُوَ مِنْ عِندِ اللَّهِ ۖ إِنَّ اللَّهَ يَرْزُقُ مَن يَشَاءُ بِغَيْرِ حِسَابٍ

“Whenever Zachariah entered upon her in the prayer chamber, he found with her provision. He said, ‘O Mary, from where is this for you?’ She said, ‘It is from Allah. Indeed, Allah provides for whom He wills without account.’”
— Surah Aal ‘Imran 3:37

From Old Age and Weakness to a Miraculous Promise

By the time he made his heartfelt dua, Zakariyya عليه السلام was already an elderly man, his bones weakened and his hair grey, and his wife had been barren for many years. From a worldly perspective, the door to having children seemed firmly closed, yet he still called upon Allah with full certainty that nothing is impossible for the One who created him in the first place.


In his supplication, Zakariyya did not ask for a child simply to remove his loneliness. He asked for a righteous heir who would inherit his spiritual legacy, uphold the religion, and continue calling people to Allah after him. This teaches us that when we ask Allah for blessings whether children, students, or projects we should aim for goodness that benefits the deen and outlives us, not just comforts us in the moment.

وَقَالَ رَبِّ إِنِّي وَهَنَ الْعَظْمُ مِنِّي وَاشْتَعَلَ الرَّأْسُ شَيْبًا وَلَمْ أَكُنْ بِدُعَائِكَ رَبِّ شَقِيًّا

“He said, ‘My Lord, indeed my bones have weakened, and my head has filled with white, and never have I been in my supplication to You, my Lord, unhappy.’”
— Surah Maryam 19:4

A Simple, Sincere Dua that Captured a Lifetime of Feelings

The Qur’an preserves a short yet profound glimpse of Zakariyya’s dua, showing the humility and hope with which he spoke to his Lord. In Surah Maryam and Surah Aal ‘Imran, we see how he acknowledges his weakness, admits his fear of what will happen after him, and still speaks to Allah as the Most Merciful, the Hearer of supplication.


Among the duas attributed to him is:

رَبِّ لَا تَذَرْنِي فَرْدًا وَأَنتَ خَيْرُ الْوَارِثِينَ

“My Lord, do not leave me alone [with no heir], while You are the best of inheritors.”
— Surah Al‑Anbiyāʾ 21:89


In this supplication, Zakariyya عليه السلام does not demand an answer nor complain about how long he has been waiting. He simply expresses his loneliness and longing, then praises Allah as the best of inheritors, acknowledging that even if no child comes, Allah remains sufficient for him. This shows us a beautiful etiquette of dua: we present our need honestly, pair it with recognition of Allah’s perfection, and accept that whatever Allah chooses for us is full of wisdom and goodness.

هُنَالِكَ دَعَا زَكَرِيَّا رَبَّهُ ۖ قَالَ رَبِّ هَبْ لِي مِن لَّدُنكَ ذُرِّيَّةً طَيِّبَةً ۖ إِنَّكَ سَمِيعُ الدُّعَاءِ

“Then and there, Zachariah prayed to his Lord, saying, ‘My Lord, grant me from Yourself pure offspring. Indeed, You are the Hearer of supplication.’”
— Surah Aal ‘Imran 3:38


Angels Bearing Glad Tidings of Yahya عليه السلام

Allah describes how He responded to this sincere, private dua in a striking way: while Zakariyya عليه السلام was standing in prayer, the angels called out to him with glad tidings of a son named Yahya, confirming that Allah had accepted his supplication. The name Yahya was itself special, and Allah describes this child as pure, noble, dutiful to his parents, and a prophet who would confirm the truth of the word from his Lord.


Zakariyya عليه السلام, amazed, asked how he could have a boy when he had reached old age and his wife was barren, yet Allah reminded him that creating life from such circumstances is easy for Him, just as He created Zakariyya himself when he was nothing. This part of the story teaches us that when Allah decrees something for His servants, no barrier age, health, or circumstance can stand in the way, and that sometimes the answer to dua comes in ways that are beyond what human calculations consider possible.

فَنَادَتْهُ الْمَلَائِكَةُ وَهُوَ قَائِمٌ يُصَلِّي فِي الْمِحْرَابِ أَنَّ اللَّهَ يُبَشِّرُكَ بِيَحْيَىٰ مُصَدِّقًا بِكَلِمَةٍ مِّنَ اللَّهِ وَسَيِّدًا وَحَصُورًا وَنَبِيًّا مِّنَ الصَّالِحِينَ

“So the angels called him while he was standing in prayer in the chamber, ‘Indeed, Allah gives you good tidings of John, confirming a word from Allah, and [who will be] honorable, chaste, and a prophet from among the righteous.’”

— Surah Aal ‘Imran 3:39


A Sign of Silence: Time to Remember and Prepare

Along with the glad tidings, Zakariyya عليه السلام was given a sign: for a set number of days, he would not be able to speak to people in the usual way, despite having no physical illness on his tongue. During this time, he was instructed to continue remembering Allah frequently and to glorify Him in the morning and evening, using gestures to communicate with those around him.


This sign of temporary silence carries a deep lesson: when a long‑awaited dua is about to be fulfilled, Allah may give a servant moments of enforced stillness, not as a punishment, but as an opportunity to deepen their dhikr, reflect on Allah’s favour, and prepare their heart for the responsibilities that come with the blessing. It reminds us that the time between dua and visible answer is not empty. It can be filled with worship, gratitude, and quiet preparation.

قَالَ رَبِّ اجْعَل لِّي آيَةً ۚ قَالَ آيَتُكَ أَلَّا تُكَلِّمَ النَّاسَ ثَلَاثَ لَيَالٍ سَوِيًّا

“He said, ‘My Lord, make for me a sign.’ He said, ‘Your sign is that you will not speak to the people for three nights, [despite] being sound.’”
— Surah Maryam 19:10


Patience, Intimacy in Dua, and Trust in Allah’s Timing

The story of Prophet Zakariyya عليه السلام teaches that sincere dua is not only for the young and strong. It is the lifelong habit of those who know Allah, from youth until their hair becomes white. His example shows that hope should not fade simply because years have passed, nor should a believer assume that delays in response mean their dua is ignored. Rather, every whispered supplication is heard by the One who is near and fully aware of our situation.


Zakariyya’s life also demonstrates that asking Allah for children is not only about filling a house with noise and joy, but about asking for righteous heirs who strengthen Islam after us and remember us in their duas. Even if someone never receives exactly what they asked for, the attitude of turning to Allah again and again, as Zakariyya did, transforms loneliness into intimacy and fear of the future into reliance on the Lord who controls all outcomes.

إِذْ نَادَىٰ رَبَّهُ نِدَاءً خَفِيًّا - قَالَ رَبِّ إِنِّي وَهَنَ الْعَظْمُ مِنِّي وَاشْتَعَلَ الرَّأْسُ شَيْبًا

“When he called to his Lord with a private supplication, [saying], ‘My Lord, indeed my bones have weakened, and my head has filled with white…’”

— Surah Maryam 19:3–4

Lessons from the Story of Prophet Zakariyya عليه السلام

The life of Prophet Zakariyya عليه السلام shows us that no matter how delayed our dreams feel whether the longing for children, companionship, or a meaningful legacy we are never overlooked by Allah as long as we keep raising our hands in dua with sincerity and trust. His gentle supplication, his refusal to give up hope despite his age and circumstances, and the miraculous way Allah granted him Yahya عليه السلام teach us how to walk through seasons of waiting with patience, purposeful worship, and good expectations of Allah’s mercy.


For anyone who feels alone or left behind, Zakariyya’s words “My Lord, do not leave me alone” offer a dua that is both deeply human and filled with tawakkul, reminding us that even if people forget us, the Lord of the worlds never does. And just as Allah brought joy to the heart of an elderly prophet in a way he could never have predicted, He is fully able to open doors of relief and happiness for His servants today, at the exact moment that is best for their faith and their future.

هَٰذَا ذِكْرُ رَحْمَتِ رَبِّكَ عَبْدَهُ زَكَرِيَّا

“This is a mention of the mercy of your Lord to His servant Zachariah.”
— Surah Maryam 19:2

If you found this beneficial, also checkout: The Story of Prophet Ayyub عليه السلام in the Qur’an.

Similar Blogs