Dua of distress
Ya Hayyu Ya Qayyum: Meaning, Hadith Source & When to Say It
Nine Arabic words the Prophet ﷺ reached for whenever something distressed him. Here is what they mean, where they come from, and why the popular "recite it 40 times" claim does not hold up.
By Zaman Ishtiyaq · November 2026
9 min read
In this guide
- 01The Arabic text and meaning
- 02Where this dua comes from
- 03The longer version: "set right all my affairs"
- 04What popular sites get wrong about it
- 05When to say Ya Hayyu Ya Qayyum
- 06Why this dua fits a practice of self-accounting
- 07Begin with the short version
- 08Turn distress into honest reflection, free on iOS.
Definition
Ya Hayyu Ya Qayyum, bi rahmatika astagheeth is a short Arabic supplication, "O Ever-Living, O Sustainer of all existence, by Your mercy I seek relief," that the Prophet Muhammad ﷺ said whenever a matter distressed him, according to a hadith in Jami' at-Tirmidhi narrated by Anas ibn Malik. It calls on two of Allah's own names, Al-Hayy (the Ever-Living) and Al-Qayyum (the One who sustains everything else while depending on nothing), the same pair that opens the throne verse of Surah Al-Baqarah. A longer version, taught in a separate narration to the Prophet's daughter Fatimah, continues the phrase with a request that Allah set right all of one's affairs and never leave a person to face anything alone, even for the blink of an eye. Muhasaba is also an iOS app for Islamic journaling built around this same honest turning to Allah during hard, unsettled moments.
Most of the advice circulating about this dua focuses on a number: say it 40 times, between two specific prayers, and your worries go away. That claim has no hadith behind it. What does have a hadith behind it is something shorter and, honestly, more useful: the Prophet ﷺ himself reached for these exact words whenever something troubled him, with no count attached at all.
The Arabic text and meaning
The dua in Arabic:
يَا حَيُّ يَا قَيُّومُ بِرَحْمَتِكَ أَسْتَغِيثُ
Word by word: Ya Hayyu calls on Al-Hayy, "the Ever-Living": a life with no beginning and no end, unlike the life given to everything He created. Ya Qayyum calls on Al-Qayyum, "the Self-Sustaining," the One who holds up every other existing thing while needing nothing Himself. Bi rahmatika means "by Your mercy," naming the specific attribute being appealed to rather than Allah's power or justice. Astagheeth is the strongest word in the sentence: it shares a root with istighatha, the cry someone makes when they are drowning or under attack, not a mild request. Together the phrase does something precise rather than vague. It names exactly why Allah, and only Allah, is being asked.
These two names are not chosen at random. Al-Hayy and Al-Qayyum are the same pair that opens Ayatul Kursi (2:255): "Allah, there is no deity except Him, the Ever-Living, the Sustainer of existence." The scholars who comment on the Greatest Name of Allah (ism al-a'zam) often point to this exact combination, because a request for relief only makes sense when it is directed at something that is itself alive and self-sufficient enough to answer it.
Transliteration of this dua varies more than most. You will see it spelled "astagheeth," "astaghees," and "astaghith" across different sites, and all three are attempts at the same Arabic letter sequence, ث (a soft "th" sound, as in "think"), which does not map cleanly onto English spelling. The final letter is not a hard "s" or a hard "t"; it sits between the two. Getting the spelling exactly right matters less than getting the meaning right: whichever transliteration you read, the word is a cry for rescue, not a word you would use to ask for something small.
Where this dua comes from
Anas ibn Malik, one of the Prophet's ﷺ closest companions, reported the habit directly:
"Whenever something distressed the Prophet ﷺ, he would say: 'Ya Hayyu Ya Qayyumu, bi rahmatika astagheeth.'"
The chain is not spotless. One narrator in it, Yazid ibn Aban al-Raqashi, is classed as weak when he reports alone. But this hadith does not rest on him alone; supporting reports raise it to what scholars of hadith call hasan li-ghayrihi, "sound because of corroboration." Al-Albani graded it hasan in his verification of Sunan al-Tirmidhi. That is a meaningfully different position than "unsourced" or "fabricated," and it is also a meaningfully different position than "undisputed and flawless." Hasan is a real, usable grade: weaker than sahih, strong enough to act on, exactly the kind of nuance that gets flattened on pages that simply say "authentic hadith" without naming a source at all.
Anas ibn Malik is one of the most prolific narrators in the hadith corpus. He served the Prophet ﷺ for roughly ten years, from the time he was a young boy sent by his mother to attend him in Medina, and reported on everyday details of the Prophet's ﷺ life that companions further from his household would not have witnessed firsthand. A report about what the Prophet ﷺ personally said under distress is exactly the kind of detail that depends on someone close enough to notice and remember it, which is part of why this narration, despite the one weak link in its chain, was never dismissed outright by the scholars who examined it.
The longer version: "set right all my affairs"
A second, longer version of this dua circulates widely, usually attributed to a narration in which the Prophet ﷺ taught it to his daughter Fatimah (رضي الله عنها):
يَا حَيُّ يَا قَيُّومُ بِرَحْمَتِكَ أَسْتَغِيثُ، أَصْلِحْ لِي شَأْنِي كُلَّهُ، وَلَا تَكِلْنِي إِلَى نَفْسِي طَرْفَةَ عَيْنٍ
This longer wording is preserved through a different route than Tirmidhi 3524, chiefly al-Nasa'i's 'Amal al-Yawm wal-Layla and al-Hakim's Mustadrak. Scholars do not fully agree on how strong that chain is, and some related narrations of the Fatimah report are graded weaker still. The honest way to use it is as a longer, related supplication worth knowing, not as a hadith with the same settled standing as the short version said in distress. Where sources disagree this plainly, the safer move is to say so rather than to quote a hadith number that is not actually agreed upon; that is why no specific reference number is given for this longer version here.
What the addition does, meaning-wise, is finish the thought the short version only opens. "By Your mercy I seek relief" names the distress and the source of help in one breath. "Set right all of my affairs, and do not leave me to myself even for the blink of an eye" widens the request from one problem to everything, visible and invisible, and adds the specific fear underneath most distress: being left to manage entirely alone. Compare it with the dua of Yunus, another nine-word cry from inside real distress. Both work because they are short enough to hold onto when a long prayer is not possible, and both move through the same arc: naming who Allah is before naming what is wrong.
What popular sites get wrong about it
Search for this dua and you will find dozens of pages promising that reciting it exactly 40 times, between the sunnah and fard of Fajr, dissolves worry and answers prayers. A Hanafi fatwa addressing this exact question found no hadith establishing that count or that timing window. The practice appears to trace to later devotional writers rather than to the Prophet ﷺ or his companions. That does not make the dua itself weak; if anything the opposite is true. It means the ritual wrapped around it, the number 40 and the slot between two prayers, is an addition with no sourcing of its own.
The same pages often promise forgiveness of sins or a guaranteed answered prayer tied to this specific phrase. Neither claim appears in the hadith that actually names this dua. What the hadith establishes is simpler and, for a worried heart, arguably more useful: the Prophet ﷺ himself turned to exactly these words under real pressure, with no conditions attached. Adding an invented count or an inflated promise on top of a sound hadith does not make the dua stronger. It just adds a claim that was never made.
One site attaches a specific forgiveness-of-sins claim to a different Tirmidhi reference number entirely, as if borrowing the credibility of a real hadith collection for a claim that collection does not actually contain for this dua. That is a pattern worth watching for generally: a confident-sounding citation is not the same thing as a verified one, and the presence of any hadith number at all should not be mistaken for proof that the number points to something real. When a claim cannot be traced to a specific, checkable source, the more honest response is to say that plainly rather than to repeat the number anyway.
When to say Ya Hayyu Ya Qayyum
In the moment distress actually hits
The hadith frames it as the Prophet's ﷺ response to real trouble, not a scheduled recitation. A diagnosis, a financial scare, a relationship breaking down, a decision with no good option in sight. This is the dua's natural home.
Alongside morning and evening dhikr
Many Muslims fold it into their morning adhkar or evening remembrance. This is a reasonable habit, but it is not a requirement drawn from the hadith itself, which attaches no particular time of day to it.
As often as the moment calls for
There is no minimum or maximum count in the sources. Say it once, or return to it through the day. What matters is whether you mean it when you say it, not whether you have hit a target number.
With other distress duas, not instead of them
It sits well next to a dedicated dua for anxiety or the sayings that remind you to act alongside asking, since tawakkul means relying on Allah while still taking the steps in front of you.
Why this dua fits a practice of self-accounting
This dua is worth saying honestly, not performing for a target number, and that same honesty is the whole premise of muhasaba, the Islamic practice of reviewing your day before Allah rather than performing it for anyone watching. A distressed night is exactly when both practices meet: you name what actually went wrong, you ask the One who is alive and self-sufficient to set it right, and you resist the temptation to turn either one into a formula with a guaranteed payout. Sabr, patience through hardship, is what carries you between saying the dua and seeing the relief arrive. The hadith promises that the Prophet ﷺ said these words under pressure, not that the pressure vanishes the instant the words are spoken.
Other short phrases serve a similar function in distress, each naming a different angle on the same reliance. "Hasbunallahu wa ni'mal wakeel" (Allah is sufficient for us, and He is the best Disposer of affairs) leans on Allah's sufficiency rather than His mercy. "La hawla wala quwwata illa billah" (there is no power and no strength except by Allah) leans on His power. Ya Hayyu Ya Qayyum leans on His life and self-sufficiency. None of the three competes with the others; a person under real pressure often moves through more than one in the same breath, because distress rarely has only a single shape.
Begin with the short version
You do not need the longer Fatimah narration memorised to start. Nine Arabic words (Ya Hayyu Ya Qayyumu, bi rahmatika astagheeth) are enough, and they are soundly sourced on their own. Say them the next time something distressing lands on you, without counting, without a scheduled slot, and without a promised outcome attached. That is exactly how the Prophet ﷺ is reported to have used them.
Carry it into your reflection
Turn distress into honest reflection, free on iOS.
The Muhasaba app guides a five-minute nightly reflection, written or spoken, with an ayah chosen for your night and a dhikr to close it.
Download on the App StoreNew to muhasaba? Learn what muhasaba al-nafs means →
