Published on

Dua of Prophet Ayyub: The Prayer That Ended Years of Suffering

Authors
  • Ahmad
    Name
    Ahmad
    Role
    Senior Marketing Manager, Islamic education • Deen Back

بِسْمِ اللهِ الرَّحْمٰنِ الرَّحِيْمِ

In the name of God, the Most Gracious, the Most Merciful.

A solitary figure seated under a tree at dawn with soft golden light, representing patience and trust in Allah during prolonged hardship

There is a certain kind of suffering that does not end quickly. It stretches on — weeks become months, months become years. You make dua. Nothing seems to change. You make dua again. Still nothing. The nafs starts whispering that maybe this is just how things are now. That maybe your prayers are not reaching anywhere. That maybe patience has a limit and you have reached it.

Prophet Ayyub ﷺ knew that place. He lived there for years. And the dua he made from that place is one of the most powerful in the entire Quran — not because it was loud or dramatic, but because of its complete, unguarded honesty before Allah.

The Dua of Prophet Ayyub

أَنِّي مَسَّنِيَ الضُّرُّ وَأَنتَ أَرْحَمُ الرَّاحِمِينَ

Anni massani ad-durru wa anta arhamur-rahimin

"Indeed, adversity has touched me, and You are the Most Merciful of the merciful."

— (Surah Al-Anbiya, 21:83)

Study what Ayyub ﷺ did not say. He did not say "fix this now." He did not say "I have been patient long enough." He did not list his complaints or remind Allah of his years of worship. He simply named the reality — adversity has touched me — and then named who he was speaking to — and You are the Most Merciful of the merciful.

That is the entire dua. Two clauses. One acknowledgment of pain. One statement of trust. No ultimatum. No negotiation. Just honest, humble declaration.

Say it when you are at the edge of your endurance. Say it when the trial has gone on longer than you thought you could bear. Say it when you have nothing left to offer except the truth of your situation and your trust in Allah's mercy.

The Story Behind This Dua

Prophet Ayyub ﷺ was a man of extraordinary gifts — health, wealth, family, and faith. Then the trials began. He lost his wealth. He lost his children. He lost his health. Classical scholars describe an illness so severe it affected him physically for years. Those around him, one by one, fell away. His wife remained — working to support them — but his community largely abandoned him.

Through all of it, Ayyub ﷺ did not break. He did not curse his situation. He did not accuse Allah of injustice. There is a hadith recorded by Ibn Majah in which it is mentioned that Ayyub never turned his heart against Allah throughout his trial — and this is what made his patience extraordinary, not just its length, but its quality.

When he finally made this dua — after years of suffering — there was no desperation in it, no accumulated bitterness. It was the same voice that had always spoken to Allah: honest, humble, trusting. Allah answered:

فَاسْتَجَبْنَا لَهُ فَكَشَفْنَا مَا بِهِ مِن ضُرٍّ وَآتَيْنَاهُ أَهْلَهُ وَمِثْلَهُم مَّعَهُمْ رَحْمَةً مِّنْ عِندِنَا

"So We responded to him and removed what afflicted him of adversity. And We gave him back his family and the like thereof with them as mercy from Us."

— (Surah Al-Anbiya, 21:84)

Everything that had been taken was returned — and more. But notice: Allah answered the dua He found worthy of answering. He did not answer complaints or ultimatums. He answered the humble, honest prayer of a man who had never stopped trusting Him.

How to Make This Dua Part of Your Daily Life

The dua of Ayyub ﷺ is short enough to memorize in minutes. But using it well requires something more: learning to pray it without demanding a specific outcome, and without a deadline.

Attach it to the hardest part of your day. If you are dealing with chronic illness, financial stress, a struggling relationship, or a problem with no visible solution — identify the moment when it feels heaviest. Before Fajr. During the night when you cannot sleep. In the middle of a difficult workday. Say this dua at that moment, consistently. Not as a formula, but as a genuine expression: this pain is real, and You are the Most Merciful.

Say it without a mental timer. One of the ways the nafs corrupts patient dua is by attaching invisible deadlines to it. "I've been saying this for three months — why hasn't anything changed?" Ayyub ﷺ did not make this calculation. His trust in Allah's mercy was not conditioned on a timeframe. When you say this dua, try to release the timer. You are not informing Allah of a deadline. You are entrusting Him with the timeline.

Use it to build honest dua in general. Most of us approach dua with a list — things we want, changes we need, problems to be solved. The dua of Ayyub teaches a different mode: come to Allah with your pain and your trust, and let Him decide the form of the answer. Start with dua for hardship and dua for ease to build the vocabulary of turning to Allah in difficulty, and let Ayyub's dua become your anchor in the longest trials.

Track the practice, not the result. You cannot control when or how Allah answers. You can control whether you are consistently turning to Him. Making dua a daily habit — through your worst periods, not only through good ones — is itself a form of worship. It is the practice that Ayyub ﷺ modeled for years before the answer came.

Build a Dua Practice That Holds Through Long Trials

Ayyub made dua through years of hardship — not just once, but consistently. DeenBack helps you track your daily supplication streak so you never lose the habit, even when the answer has not come yet.

Download on the App StoreGet it on Google Play

Free download. Premium features available in-app.

Dua of Prophet Yunus: The dua of Prophet YunusLa ilaha illa anta subhanaka inni kuntu mina az-zalimin — is Ayyub's natural companion. Both are duas made from complete darkness, both are answered with total rescue. Yunus made his from inside a whale. Ayyub made his from years of illness. The One who answered both hears you now.

Dua for hardship: The dua for hardship pairs naturally with Ayyub's prayer — use it when the trial is acute and Ayyub's dua when the trial has become chronic.

Dua for patience: Dua for patienceRabbana afrigh alayna sabran — is a necessary companion to Ayyub's prayer. You need patience to sustain the kind of dua Ayyub made, and this supplication asks Allah for exactly that capacity.

Common Questions

Can I add to this dua — ask Allah specifically for what I need?

Yes. The dua of Ayyub is a framework, not a complete script. After saying Anni massani ad-durru wa anta arhamur-rahimin, you can continue in Arabic or your own language, naming your specific situation, asking for specific forms of relief. The key is to begin the way Ayyub began: with honest acknowledgment and trust, before moving to requests.

Does this dua work for emotional suffering, not just physical?

Ayyub's trial included profound loss — his children, his wealth, his community, his health. The word durr (adversity) in the dua is broad enough to encompass any form of hardship: illness, grief, financial ruin, loneliness, spiritual struggle. This is a dua for the full range of human difficulty.

What if I feel like I cannot be as patient as Prophet Ayyub?

Almost no one can. That is precisely why the story is in the Quran — not to create an impossible standard, but to anchor your trust when your own patience runs thin. You do not need to feel as patient as Ayyub to use his dua. You just need to say it honestly: this pain has touched me, and You are the Most Merciful. Allah hears the dua of the struggling believer, not only the perfect one.

The Prayer of Someone Who Endured

Ayyub's dua is not famous because it used grand language or elaborate structure. It is famous because of the man who made it — a man who had every reason to turn bitter and never did, who kept turning to Allah through years of trial, and whose humble acknowledgment of pain and trust in mercy became one of the most powerful prayers ever recorded.

When your trial has gone on too long. When you are not sure you can endure more. When the nafs says nothing is changing. Say what Ayyub said: Indeed, adversity has touched me, and You are the Most Merciful of the merciful.

And then wait — not with resentment, but with the trust that the One who answered Ayyub is still answering.

Turn Ayyub's Dua Into Your Daily Anchor

The duas that sustain you through long trials are the ones you have practiced before the crisis. Start your daily dua streak today with DeenBack — and build the habit that holds you when you need it most.

Download on the App StoreGet it on Google Play

Free download. Premium features available in-app.

Frequently Asked Questions

What is the dua of Prophet Ayyub in the Quran?

The dua of Prophet Ayyub is: Anni massani ad-durru wa anta arhamur-rahimin — Indeed, adversity has touched me, and You are the Most Merciful of the merciful. (Surah Al-Anbiya, 21:83) It is remarkable for what it does not say — no ultimatum, no list of demands, only an honest acknowledgment of pain and a statement of trust in Allah's mercy.

How long did Prophet Ayyub suffer before Allah answered his dua?

Classical scholars differ on the exact duration, with narrations ranging from 7 to 18 years of illness and trials. The Quran does not specify the number, but it does confirm that the trial was prolonged. What matters is that Ayyub never stopped turning to Allah during that entire period, and eventually the dua was answered completely.

When should I use the dua of Prophet Ayyub?

Use this dua in any situation of prolonged difficulty — chronic illness, ongoing hardship, a problem that has lasted months or years with no visible solution. It is especially powerful when you feel like you have been patient for a long time and are beginning to doubt whether relief will come.

Does the dua of Prophet Ayyub guarantee immediate relief?

Allah answered Ayyub's dua, but the Quran does not say He answered it immediately. The lesson is not that this dua produces instant results — the lesson is that sincere, humble supplication during long trials is always heard, and Allah's timing is always better than our urgency.

What was restored to Prophet Ayyub after his dua?

The Quran states that Allah removed his affliction and restored his family and even more like them, as mercy from Allah and a reminder for worshippers of Allah. (Surah Al-Anbiya, 21:84) His health was restored, his losses were replaced, and his story became a permanent lesson in the Quran for every believer facing prolonged trials.