- Authors

- Name
- Ahmad
- Role
- Senior Marketing Manager, Islamic education • DeenUp
بِسْمِ اللهِ الرَّحْمٰنِ الرَّحِيْمِ
In the name of God, the Most Gracious, the Most Merciful.

Quick answer
What is the dua for anxiety and overthinking in Islam?
The Prophet's primary dua for anxiety and overthinking is: Allahumma inni a'udhu bika minal-hammi wal-hazan — O Allah, I seek refuge in You from worry and grief (Sahih al-Bukhari 6369). It directly addresses the two forms of mental distress: hamm (anxiety about the future) and hazan (grief over the past).

Your mind runs the same worry for the tenth time. You already know the outcome is uncertain. You know rehearsing it won't help. And still your thoughts loop back — the conversation you could have handled differently, the outcome you can't control, the question that has no answer yet.
Overthinking is not a modern invention; the Arabic word hamm (هَمّ), meaning anxious preoccupation with what has not yet happened, appears in the Prophet's own supplications. The Quran doesn't dismiss this experience — it offers a way through it.
What Is the Dua for Anxiety and Overthinking?
The central supplication for anxiety and overthinking comes directly from the Prophet Muhammad ﷺ. He taught a comprehensive dua reported in Sahih al-Bukhari (6369) that covers every dimension of mental distress: anxiety about the future, grief over the past, inability to act, and feelings of being overwhelmed. It is not a formula to unlock peace in one recitation — it is a practice of turning the mind toward Allah each time the spiral begins.
The Prophet's Dua for Worry and Grief
The following supplication, narrated by Anas ibn Malik رضي الله عنه, is one the Prophet ﷺ recited consistently in times of distress:
اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنَ الْهَمِّ وَالْحَزَنِ، وَالْعَجْزِ وَالْكَسَلِ، وَالْجُبْنِ وَالْبُخْلِ، وَضَلَعِ الدَّيْنِ وَغَلَبَةِ الرِّجَالِ
Allahumma inni a'udhu bika minal-hammi wal-hazan, wal-'ajzi wal-kasal, wal-jubni wal-bukhl, wa dala'id-dayn wa ghalabatir-rijal
"O Allah, I seek refuge in You from worry and grief, from inability and laziness, from cowardice and miserliness, from the burden of debt and the domination of people." — (Sahih al-Bukhari 6369)
This dua addresses eight distinct afflictions in pairs: hamm (anxiety about future events) and hazan (grief over the past); helplessness and inertia; cowardice and stinginess; financial burden and subjugation by others. Reciting it names what you are experiencing and places it directly before Allah.
Understanding the Two Types of Mental Distress
| Arabic Term | Meaning | When It Arises |
|---|---|---|
| هَمّ (hamm) | Anxious preoccupation | Worrying about what has not yet happened |
| حَزَن (hazan) | Grief or sadness | Replaying what has already passed |
| عَجْز ('ajz) | Helplessness | Feeling unable to take action |
| كَسَل (kasal) | Lethargy | Paralysis disguised as laziness |
The Prophet ﷺ deliberately paired these terms, recognizing that overthinking often oscillates between future anxiety and past regret. The dua addresses both in a single breath.
What the Quran Teaches About Overthinking
Several Quranic passages speak directly to the experience of a mind that cannot rest.
Surah Al-Inshirah (94:5-6) states the same promise twice: "For indeed, with hardship will be ease; indeed, with hardship will be ease." Classical scholars note that the repetition is not accidental — in Arabic grammar, the definite article on "hardship" (al-'usr) means one hardship, while "ease" (yusr) appears indefinite both times, implying that one difficulty cannot exhaust the supply of relief Allah provides.
Surah Ar-Ra'd (13:28) offers the foundational reassurance: "Verily, in the remembrance of Allah do hearts find rest (tatma'inn)." The word tatma'inn denotes a deep, settled tranquility — not surface-level calm but the quieting of a restless mind.
Surah Al-Baqarah (2:286) closes with a promise that anchors tawakkul: "Allah does not burden a soul beyond that it can bear." Overthinking often involves catastrophizing — imagining burdens greater than Allah has actually placed. This verse interrupts that spiral with a direct divine declaration.
For a deeper look at Quranic relief from depression and despair, see our guides on dua for mental health and dua for peace of mind.
The Dua of Yunus: For When Thoughts Feel Inescapable
When overthinking feels inescapable — like being swallowed by your own mind — the Dua of Yunus (peace be upon him) carries special weight. Yunus عليه السلام called out from within the belly of the whale, in complete darkness with no apparent way out:
لَّا إِلَـٰهَ إِلَّا أَنتَ سُبْحَـٰنَكَ إِنِّى كُنتُ مِنَ ٱلظَّـٰلِمِينَ
La ilaha illa Anta, subhanaka, inni kuntu mina az-zalimin
"There is no deity except You; exalted are You. Indeed, I have been of the wrongdoers." — (Quran 21:87)
The Prophet ﷺ said: "No Muslim man supplicates with it while afflicted with anything, except that Allah responds to him" (Tirmidhi 3505). Its power lies in redirecting the mind from its own circular reasoning — from "what if" to "who is" — acknowledging Allah's sovereignty over every outcome.
Do you feel your duas are unanswered?
Have you read the dua properly? Learn authentic duas, understand their meanings, and call upon Allah with greater confidence through DeenUp.
Take the Dua Quiz
Making This Dua Part of Your Daily Life
Knowing a dua and actually reaching for it in the middle of an anxious spiral are two different things. The gap closes through habit — reciting these supplications at fixed times so they become automatic when you need them most.
Morning adhkar: The morning and evening adhkar tradition is the most established Sunnah framework for building mental resilience. Making the Prophet's anxiety dua part of your post-Fajr routine means you have already sought Allah's protection before the day's stressors begin.
Interrupting the loop: When you notice overthinking starting — the same thought cycling for the second or third time — use it as a trigger. Say A'udhu billahi min ash-shaytanir-rajim first (Sahih Muslim 2203) to address the whispered thoughts (waswas), then move into the longer dua.
Physical anchors: The scholars note that the Prophet ﷺ combined dua with practical action. Standing for salah, making wudu, or going for a short walk while reciting breaks the physical stillness that allows rumination to deepen. Dua for stress and anxiety pairs well with brief movement between prayer times.
Before sleep: Overthinking at night is particularly common. The dua for overthinking and the Surah Al-Mulk recitation before sleep (reported in Tirmidhi 2892 as protection until morning) are two practices that settle a racing mind at the day's end.
Related Supplications for Anxious and Overwhelmed Moments
| Dua | Arabic | When to Recite | Source |
|---|---|---|---|
| For relief from worry | اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنَ الْهَمِّ | Morning adhkar, moments of distress | Sahih al-Bukhari 6369 |
| For trust in Allah | حَسْبُنَا اللَّهُ وَنِعْمَ الْوَكِيلُ | When overwhelmed, when plans fail | Quran 3:173 |
| Dua of Yunus | لَّا إِلَـٰهَ إِلَّا أَنتَ سُبْحَـٰنَكَ | Any moment of being trapped or helpless | Quran 21:87; Tirmidhi 3505 |
| For a settled heart | اللَّهُمَّ اجْعَلِ الْقُرْآنَ رَبِيعَ قَلْبِي | After salah or Quran recitation | Ahmad 3712 |
The supplication Hasbunallah wa ni'mal wakeel — "Sufficient for us is Allah, and He is the best Disposer of affairs" (Quran 3:173) — is particularly useful for the specific anxiety of feeling out of control. It was what Ibrahim عليه السلام said when thrown into the fire, and what the Prophet ﷺ and the companions said when threatened (Sahih al-Bukhari 4563). It is not passive resignation; it is active reliance.
For a complete overview of Prophetic duas for emotional wellbeing, seekersguidance.org provides detailed scholarly context: seekersguidance.org/answers/islamic-spirituality/.
The Yaqeen Institute has also published research on Islamic frameworks for mental health and anxiety: yaqeeninstitute.org.
For a companion perspective on managing mental load through Islamic practice, see deenback.com and demimanifest.com/islam.
Common Questions About Dua for Anxiety and Overthinking
Can I say these duas in English? Arabic is the language of the transmitted Prophetic supplications and carries the precise meaning intended. However, scholars permit supplicating in your native language alongside the Arabic, particularly in personal dua (as distinct from salah). The practice is to learn the Arabic gradually while using your language during the learning period.
What if I keep forgetting to recite the dua? Forgetting is itself a form of ghafla (heedlessness) that wudu, salah, and regular dhikr circles gradually address. App-based reminders for morning and evening adhkar are a practical starting point — they restore the habit before it disappears. Our daily duas for Muslim life resource lists the full morning and evening sets with transliteration.
Does reciting dua replace seeking professional help for anxiety? No. Islam actively encourages seeking the causes and cures of illness, including mental illness — the Prophet ﷺ said: "Make use of medical treatment, for Allah has not made a disease without appointing a remedy for it" (Abu Dawud 3855). Dua and professional mental healthcare are complementary, not competing.
How do I know my dua is being accepted? The conditions for accepted dua include: certainty that Allah hears (Tirmidhi 3479), permissible livelihood, avoiding impermissible things, and not rushing for an answer. Importantly, acceptance does not always mean immediate relief — sometimes it means the burden becomes lighter, not that it disappears. See Quran 2:286 and the scholarly discussion at quran.com/2/286.
What is tawakkul and how does it help overthinking? Tawakkul (تَوَكُّل) is complete reliance on Allah after taking reasonable action. Overthinking often stems from the belief that more mental effort will produce more control. Tawakkul interrupts this by distinguishing what is within your agency from what is within Allah's. The Quran commands it: "And when you have decided, then rely upon Allah" (Surah Ali Imran, 3:159).
Closing: The Remembrance That Settles the Mind
The Quran does not promise a life without worry. What it promises is a way of carrying that worry that does not crush you — through remembrance, supplication, and the settled conviction that the One who created the situation also holds its resolution.
The Prophet's dua for anxiety is not a one-time fix. It is a turning — away from the circular loop of hamm and hazan, toward the only anchor that does not move. Every time you say it, you are practicing exactly what Surah Ar-Ra'd describes: the remembrance in which hearts find rest.
Start where you are. One dua, one time, one morning. That is enough to begin.
Do you feel your duas are unanswered?
Have you read the dua properly? Learn authentic duas, understand their meanings, and call upon Allah with greater confidence through DeenUp.
Take the Dua Quiz
Frequently Asked Questions
What is the dua for anxiety and overthinking in Islam?
The Prophet's primary dua for anxiety and overthinking is: Allahumma inni a'udhu bika minal-hammi wal-hazan — O Allah, I seek refuge in You from worry and grief (Sahih al-Bukhari 6369). It directly addresses the two forms of mental distress: hamm (anxiety about the future) and hazan (grief over the past).
Which Quran verse helps with overthinking?
Surah Al-Inshirah (94:5-6) states twice: For indeed, with hardship will be ease — directly countering the loop of overthinking by anchoring the mind in Allah's promise. Reciting it during anxious spirals realigns the heart with certainty rather than fear.
How many times should I recite the dua for anxiety?
The Sunnah does not specify a fixed count for the anxiety dua. The Prophet ﷺ taught it as a comprehensive supplication to be said whenever distress arises — morning, evening, or during an anxious episode. Consistent repetition throughout the day is recommended, especially as part of morning and evening adhkar.
Is there a dua specifically for stopping intrusive thoughts?
Yes. When intrusive or whispered thoughts (waswas) arise, the Prophet ﷺ instructed seeking refuge in Allah by saying: A'udhu billahi min ash-shaytanir-rajim (I seek refuge in Allah from the accursed shaytan) (Sahih Muslim 2203). Then turning to physical activity or wudu breaks the cycle of rumination.
Can anxiety be treated through Islamic practice?
Islamic tradition treats anxiety through dua, dhikr, salah, tawakkul (reliance on Allah), and community. The Quran states that in the remembrance of Allah hearts find rest (Surah Ar-Ra'd, 13:28). These are spiritual tools, not replacements for professional mental health support when it is needed.
What is the difference between hamm and hazan in the anxiety dua?
In the Prophet's dua (Sahih al-Bukhari 6369), hamm refers to anxiety or worry directed at anticipated future events, while hazan (also spelled huzn) refers to grief or sadness over past events. Together they cover the full spectrum of rumination: replaying the past and dreading the future.
Is the Dua of Yunus good for overthinking?
The Dua of Yunus — La ilaha illa Anta, subhanaka, inni kuntu mina az-zalimin (Quran 21:87) — is one of the most recommended supplications during distress. The Prophet ﷺ said that no Muslim recites it while afflicted without Allah responding (Tirmidhi 3505). It redirects the mind from circular thought to direct acknowledgment of Allah's sovereignty.