- Published on
Dua for Overcoming Addiction: Ask Allah to Purify Your Nafs
- Authors

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

There is a particular type of sin that doesn't feel like a choice anymore. You didn't plan to be here. What started as something occasional became a pattern, and what was a pattern became a pull so strong you've started to wonder whether your willpower exists at all.
This is addiction — and it is, at its core, a battle with the nafs. The lower self that started as a whisper has learned to shout. Islam does not tell you that you are weak for struggling with this. It tells you there is a dua for exactly this moment.
The Dua for Purifying the Nafs
The Prophet ﷺ taught his daughter Fatimah a supplication that speaks directly to this struggle. It is not a generic plea — it is a request for the nafs itself to be given taqwa:
اللَّهُمَّ آتِ نَفْسِي تَقْوَاهَا وَزَكِّهَا أَنْتَ خَيْرُ مَنْ زَكَّاهَا أَنْتَ وَلِيُّهَا وَمَوْلَاهَا
Allahumma ati nafsi taqwaha, wa zakkiha anta khayru man zakkaha, anta waliyyuha wa mawlaha
"O Allah, grant my soul its taqwa, and purify it — You are the best to purify it. You are its Guardian and its Master."
Say this after Fajr and after Isha. Say it when the urge surfaces. Say it when you feel ashamed. It is a recognition that you cannot fix your nafs through willpower alone — only Allah can purify it.
The Story Behind It
When the Prophet ﷺ taught this dua, it was not a theoretical lesson. He was teaching it in a moment of intimacy — to Fatimah, his beloved daughter, as part of her nightly routine. The dua appears among the most important morning and evening adhkar precisely because the struggle with the nafs is not a one-time event. It is daily.
The scholars explain that taqwa of the nafs is not just fear — it is the state where your soul is so aligned with Allah that wrong desires lose their grip. When you ask Allah to give your nafs its taqwa, you are asking Him to do what years of willpower could not. And when you say "You are its Guardian and its Master," you are surrendering the battle to the One who can actually win it.
This is not resignation. It is wisdom.
How to Make This Dua Part of Your Recovery
Addiction recovery in Islam is not just about stopping. It is about replacing, rebuilding, and returning.
Anchor the dua to salah. Say this supplication after every Fajr and Isha prayer. These are the most vulnerable times — the dawn when cravings often peak and the night when shaytan finds you tired. Making it a post-salah habit means you are never more than a few hours from renewing your request.
Use it as a real-time interrupt. When the urge rises — and it will — say the dua before you do anything else. Even if your hands are shaking. Even if you are not sure you mean it. The act of turning to Allah in that moment reorients the nafs, even briefly. That brief reorientation is the crack in the wall.
Stack it with practical barriers. Remove the triggers you can control. Block the apps. Leave the environment. Change the routine that leads to the habit. The dua is not a magic shield against poor preparation — it is the power source for the effort you are also making.
Track your clean days. The Prophet ﷺ said the most beloved deeds to Allah are the most consistent ones, even if small. A single clean day, repeated, becomes a week. A week becomes a month. Each day you maintain your commitment, make shukr to Allah for it. The streak is not about pride — it is about acknowledging His help.
Seek human support. Tell a trusted brother, sister, or professional. The Prophet ﷺ said "Take care of your brother's burden." Isolation is one of addiction's most powerful tools. Break it.
Track Your Clean Streak
DeenBack helps you log your daily commitment and build an unbroken streak. One day at a time, with dua and accountability built in.
Free download. Premium features available in-app.
Related Duas for the Same Battle
When overcoming addiction, this dua works alongside others. For the moment the urge is strongest, read about the dua when tempted — a short, powerful supplication for exactly that flash of vulnerability.
For the broader battle against sin, the dua to avoid sin provides a supplication that wraps the soul in protection before the test arrives.
And when you fall — because most people do, at least once — the dua for repentance is the door you return through. It is never locked.
Common Questions
What if the addiction is to something I'm ashamed to say out loud in dua?
Allah already knows. You are not informing Him — you are turning to Him. Say the dua. Name what you are struggling with in your heart. The specificity of your need does not reduce Allah's capacity to help; it sharpens your own sincerity.
Can I say this dua for someone else who is struggling with addiction?
Yes — making dua for another person without their knowledge is one of the most powerful acts. The Prophet ﷺ said that when you pray for your brother in their absence, an angel says "And for you the same." Your dua for them may be the spiritual turning point they never knew happened.
How long before I see results?
This varies enormously. Some people feel an immediate shift after sincere dua; for others, the change is slow and cumulative. What the Prophet guaranteed is not speed — he guaranteed that no sincere dua is wasted. It is answered in this life, stored for the next, or used to avert a harm. Trust the system even when you cannot see the results.
What about professional treatment — does seeking help undermine tawakkul?
No. Seeking treatment is part of taking the means Allah placed in the world. Tawakkul is not passivity — it is placing your trust in Allah while using the tools He provided. Therapy, rehabilitation, and medical support are legitimate means. Use them alongside your dua, not instead of it.
Closing
Addiction is one of the hardest battles a person can face. But you are not facing it alone, and you are not facing it without weapons. The nafs can be purified — not by your effort alone, but by asking the One who created it to grant it what it needs.
Say the dua. Make the practical changes. Build the streak one day at a time. And when you fall, get up and say the dua again. That is what recovery looks like in Islam — not perfection, but persistent return.
For more on understanding the deeper spiritual roots of this battle, read our guide on how to break bad habits as a Muslim and what the nafs actually is.
Your Recovery, One Day at a Time
Build daily dua habits, track your progress, and stay consistent with DeenBack. The streak starts today.
Free download. Premium features available in-app.
Frequently Asked Questions
Is it possible to overcome addiction through dua alone?
Dua is the foundation, but it works alongside action. The Prophet taught us to tie our camel and then trust Allah — meaning we make practical changes (cut triggers, seek support, replace the habit) while asking Allah for the strength to follow through. Dua without effort is wishful thinking; effort without dua is arrogance.
How many times should I repeat this dua each day?
Say it as part of your morning adhkar and again whenever you feel the urge rising. There is no fixed number — what matters is sincerity and presence. A single heartfelt repetition is more powerful than a hundred rushed ones.
What if I keep relapsing even while making dua?
Relapse is part of most recovery journeys. The Prophet said Allah is more pleased with a slave who sins and repents than one who never sins at all — because it drives them back to Him. Every relapse is a signal: reconnect, re-assess your triggers, and ask for more help. Don't quit the dua because you fell.
Should I tell someone about my addiction or keep it private?
The Prophet said: 'All of my ummah will be forgiven except those who sin openly.' Keep your struggle private between you and Allah. Seek support from a trusted person or professional if needed, but you are not required to broadcast your sins.
