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

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

Published: 21 April 2026

Prophet Ayyub عليه السلام was a grateful and devoted servant of Allah who was tested with some of the hardest trials a human being can face. Loss of wealth, health, and even family, yet his heart remained firm in patience and trust. In the Qur’an, Allah highlights Ayyub’s dignified dua, his refusal to complain about Allah’s decree, and the beautiful way relief finally came, making his story a powerful guide for every believer facing long and painful hardships.

وَأَيُّوبَ إِذْ نَادَىٰ رَبَّهُ أَنِّي مَسَّنِيَ الضُّرُّ وَأَنتَ أَرْحَمُ الرَّاحِمِينَ

“And [mention] Ayyub (Job), when he called to his Lord, ‘Indeed, adversity has touched me, and You are the most merciful of the merciful.’”

— Surah Al‑Anbiyāʾ 21:83

A Blessed Prophet Remembered for Sabr

Ayyub عليه السلام is mentioned among the noble prophets whom Allah specially guided and chose, reminding us that even those closest to Allah are not exempt from tests. In Surah An‑Nisāʾ, Allah lists Ayyub alongside Ibrahim, Ismaʿil, Ishaq, Yaʿqub, ʿIsa, and other prophets alaihimussalam, showing that he stands in a line of honoured messengers who called people to worship Allah alone and lived lives of deep obedience.


إِنَّا أَوْحَيْنَا إِلَيْكَ كَمَا أَوْحَيْنَا إِلَىٰ نُوحٍ وَالنَّبِيِّينَ مِنۢ بَعْدِهِ ۚ وَأَوْحَيْنَا إِلَىٰ إِبْرَاهِيمَ وَإِسْمَاعِيلَ وَإِسْحَاقَ وَيَعْقُوبَ وَالْأَسْبَاطِ وَعِيسَىٰ وَأَيُّوبَ…

“Indeed, We have revealed to you, [O Muhammad], as We revealed to Noah and the prophets after him. And We revealed to Abraham, Ishmael, Isaac, Jacob, the Descendants, Jesus, Job…”
— Surah An‑Nisāʾ 4:163

Before the trials came, Allah had blessed Ayyub عليه السلام with wealth, land, animals, and a large family, and he was known for his gratitude and constant remembrance of Allah in both ease and comfort. His story shows that when a believer is thankful in times of blessings, Allah supports them when those blessings are taken away, and their earlier shukr becomes a foundation for sabr.


From Comfort to Calamity: Wealth, Health, and Family Taken Away

Over time, Ayyub عليه السلام was tested in almost every part of his worldly life. His wealth and property were taken, his lands and animals were lost, and the status he once had among people disappeared, yet he remained content with Allah’s decree, recognising that everything belongs to Allah and returns to Him.

Then came an even harder test: severe illness that affected his body to the point that many people kept their distance, even though his heart, tongue, and remembrance of Allah remained pure. Historians mention that his illness lasted for many years, yet throughout this period he did not turn away from Allah, nor did he allow his pain to push him into complaining about Allah’s wisdom.


Despite losing much of his wealth and many of his comforts, Ayyub عليه السلام continued to remember Allah day and night and did not let hardship become an excuse to abandon worship or gratitude. His trials teach us that sometimes a believer may be stripped of almost everything in this world, but as long as the heart remains attached to Allah, they have not truly lost.


A Heart That Refused to Complain About Allah

What makes the story of Ayyub عليه السلام so special is not just the intensity of his trials, but the way he responded to them with quiet endurance, humility, and good thoughts of his Lord. Even when those around him suggested that he ask Allah to remove his hardship because of the length and severity of his suffering, he chose his words carefully and never accused Allah of wronging him.

The Qur’an does not dwell on details of his disease. Instead, it focuses on his remarkable dua that captures his attitude: he acknowledges his pain but still praises Allah as the Most Merciful of those who show mercy. This balance shows that a believer can describe their suffering to Allah without crossing the line into objection or dissatisfaction with His decree.

قَالَ رَبِّ إِنِّي مَسَّنِيَ الشَّيْطَانُ بِنُصْبٍ وَعَذَابٍ

“He said, ‘My Lord, indeed Satan has touched me with hardship and torment.’”

— Surah Ṣād 38:41


Here Ayyub عليه السلام attributes the hardship to the influence of Shayṭān and the test he is undergoing, yet still returns to Allah as his refuge and protector, not as someone who has wronged him. His example teaches us that it is possible to be honest about our pain while keeping our hearts full of adab and respect towards Allah.

A Simple, Beautiful Duʿa in the Midst of Pain

At the heart of Ayyub’s story is a short but powerful supplication recorded in the Qur’an. After years of hardship, he called out:

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

“Indeed, adversity has touched me, and You are the most merciful of the merciful.”
— Surah Al‑Anbiyāʾ 21:83

In this dua, Ayyub عليه السلام does not list every detail of his trials, nor does he demand relief. He simply states his weakness and then praises Allah’s mercy, leaving the timing and form of relief entirely to his Lord. This shows us a beautiful way of making dua in hardship: acknowledge your need, mention Allah’s perfect names, and trust that He knows what is best for you.

Allah describes His response to this sincere call in the next verse:

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

“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 a mercy from Us and a reminder for the worshippers.”
— Surah Al‑Anbiyāʾ 21:84

This verse reminds us that no dua made with sincerity is lost, even if the relief comes after many years. When Allah responds, He can not only remove hardship but also replace what was lost with something equal or greater, as a special mercy for His servants.

Divine Healing: “Strike [the Ground] With Your Foot”

The Qur’an also mentions a specific moment when Allah instructed Ayyub عليه السلام on how his healing would begin. After his dua and long patience, Allah commanded him:

اُرْكُضْ بِرِجْلِكَ ۖ هَٰذَا مُغْتَسَلٌۢ بَارِدٌ وَشَرَابٌ

“[We said], ‘Strike [the ground] with your foot. This is a cool bath and drink.’”
— Surah Ṣād 38:42

When Ayyub عليه السلام obeyed and struck the ground, a spring of cool water gushed forth, and by bathing in it and drinking from it, his illness was cured, his body restored, and the visible signs of his suffering removed by Allah’s permission. This shows that sometimes Allah’s help comes through simple actions He commands us to take, and our responsibility is to respond with obedience, even when we do not see the full wisdom at first.

Along with healing his body, Allah also restored Ayyub’s family and granted him blessings once again, turning years of hardship into a story of honour and mercy that believers recall for comfort and strength. His story becomes a living reminder that after long nights of trial, Allah can open doors of relief in ways a person never imagined.


Patience, Shukr, and Good Thoughts of Allah

The story of Prophet Ayyub عليه السلام teaches that patience is not passive. It is an active, ongoing choice to keep worshipping Allah, making dua, and having good expectations of Him even when life is filled with pain. Scholars mention that Ayyub a.s would praise Allah constantly during his illness and remember the past blessings Allah had given him, seeing even the withdrawal of those blessings as an opportunity to be more devoted instead of more distant.

His example shows that true sabr does not mean you feel no sadness or difficulty. Rather, it means you do not let that sadness push you into disobedience, complaint against Allah, or despair of His mercy. In Ayyub’s life we see a believer who loses much of what people usually value, but never loses his greatest treasure: a heart that trusts Allah and continues to call upon Him.

إِنَّا وَجَدْنَاهُ صَابِرًا ۚ نِعْمَ الْعَبْدُ ۖ إِنَّهُ أَوَّابٌ

“Indeed, We found him patient. What an excellent servant! Indeed, he was one repeatedly turning back [to Allah].”
— Surah Ṣād 38:44

In this praise, Allah Himself describes Ayyub عليه السلام as a patient servant who constantly returned to Him, turning his long trial into a means of nearness rather than distance. This is the core lesson for every believer facing tests: to aim to be a servant whom Allah calls “excellent,” not because life was always easy, but because in both ease and hardship they kept turning back to Him.

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

The life of Prophet Ayyub عليه السلام shows us that no matter how heavy our trials become whether they touch our health, our wealth, or our family we are never forgotten by Allah as long as we keep turning to Him with patience and dua. His gentle dua, his refusal to accuse Allah of injustice, and the beautiful way relief came after years of pain teach us how to walk through hardship with sabr, shukr, and hopeful trust in Allah’s mercy.

وَمَن يَتَّقِ اللَّهَ يَجْعَل لَّهُ مَخْرَجًا

“And whoever fears Allah – He will make for him a way out.”
— Surah At‑Ṭalāq 65:2

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

Similar Blogs