- Published on
Dua When Tempted: What to Say When Your Nafs Is Pulling You Down
- Authors

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

You know the feeling. Something appears — a thought, an image, a situation — and immediately your nafs wakes up and starts making its case. Just this once. No one will know. It is not that serious. You can repent later.
The speed of it is what catches people off guard. Temptation does not announce itself with a warning label. It arrives fast, it feels compelling, and by the time you have thought through the situation rationally, you are already halfway through giving in.
The prophetic response to temptation is not willpower. It is dua — specifically a dua short enough to say in the exact moment the pull is felt.
The Dua for When Temptation Hits
أَعُوذُ بِاللَّهِ مِنَ الشَّيْطَانِ الرَّجِيمِ
A'udhu billahi min al-shaytani al-rajim
"I seek refuge in Allah from the accursed Shaytan."
— (Sahih Muslim 2203, as commanded in Quran 16:98)
Allah commands this dua directly in the Quran: "So when you recite the Quran, seek refuge with Allah from the accursed Shaytan." (16:98) The command is for Quran recitation, but the Sunnah extends it to moments of temptation, anger, and moral danger.
The key word is a'udhu — I seek refuge. This is not passive. It is an active turning to Allah for cover. You are saying: I recognize I am in danger. I am running toward You.
The Companion Dua — Against the Nafs Itself
Shaytan is external. But the nafs is internal — and often the bigger problem.
اللَّهُمَّ أَلْهِمْنِي رُشْدِي وَأَعِذْنِي مِنْ شَرِّ نَفْسِي
Allahumma alhimni rushdi wa a'idhni min sharri nafsi
"O Allah, inspire me with my right guidance and protect me from the evil of my own soul."
— (Tirmidhi 3483, authenticated as hasan)
This dua covers the internal dimension. Sharr nafsi — the evil of my own soul. The nafs that makes excuses, that whispers just this once, that rationalizes. You are asking Allah to protect you from yourself — which is an act of remarkable honesty.
The Story Behind These Duas
The Quran's command to seek refuge from Shaytan before Quran recitation (16:98) comes in context. Shaytan's primary strategy is to distract, corrupt, and redirect the heart away from Allah. The dua of refuge is the direct counter: not my own defense, but Allah's cover.
The Prophet ﷺ famously addressed a man who was angry by saying: "Say: A'udhu billahi min al-shaytan al-rajim." (Sahih Muslim 2610). This tells us something crucial: the dua is not only for haram temptations. Anger, pride, envy, and other nafs-driven states are also covered.
The companion dua from Tirmidhi appears in a broader supplication the Prophet ﷺ taught for daily recitation. The phrase alhimni rushdi — inspire me with right guidance — is an acknowledgment that we cannot always think clearly in the moment of temptation. We need divine inspiration to cut through the nafs's fog.
The Quran itself says: "Indeed, the soul is a persistent enjoiner of evil." (12:53). This is not pessimism — it is honest psychology. The nafs defaults toward desire. The dua acknowledges this and asks for protection at the source.
How to Make This Dua a Reflex
The goal is to make reaching for this dua as automatic as the temptation itself. Right now, temptation arrives and the response is either immediate giving-in or momentary pause followed by giving-in. The dua is how you insert a third option: turn to Allah first.
Practice it outside temptation first. Drill the Arabic during calm moments. Say it after each prayer, say it walking down the street, say it as part of morning dhikr. The more automatic the Arabic becomes in normal moments, the more accessible it is when the moment of temptation arrives and your thinking narrows.
Identify your triggers. Every person has specific situations where temptation is predictably high. Late at night with the phone. Certain websites. Certain emotional states — boredom, loneliness, stress. Before entering those situations, say the dua proactively. You are building the protection before you need it, not scrambling for it after.
Say it out loud when possible. The physical act of speaking — even quietly — breaks the internal monologue of the nafs. When you say A'udhu billahi min al-shaytani al-rajim aloud, you create a moment of interruption. The nafs's argument was happening in your head. The dua takes it external and to Allah.
Follow up with action. The dua is the first response, not the only response. After saying it, physically change your situation. Move to a different room. Close the app. Stand up and make wudu. The dua is the turning point; the action is the follow-through.
Build Your Defense Against Temptation — One Streak at a Time
DeenBack helps you track the daily dhikr and dua practice that builds your spiritual resistance before temptation arrives — not just during it.
Free download. Premium features available in-app.
Related Duas for Resistance and Strength
For the moment after temptation passes — whether you held firm or not:
اللَّهُمَّ إِنِّي ظَلَمْتُ نَفْسِي ظُلْمًا كَثِيرًا وَلَا يَغْفِرُ الذُّنُوبَ إِلَّا أَنْتَ فَاغْفِرْ لِي مَغْفِرَةً مِنْ عِنْدِكَ
Allahumma inni dhalamtu nafsi dhulman kathiran wa la yaghfiru al-dhunuba illa anta faghfir li maghfiratan min 'indika
"O Allah, I have greatly wronged myself and no one forgives sins but You. So grant me forgiveness from You."
— (Sahih Bukhari 834)
Whether you held firm or gave in, this dua is the right follow-up. If you resisted, say it in gratitude for not being left to yourself. If you gave in, say it as immediate tawbah.
For protection before the day begins, the dua for morning contains comprehensive prophetic supplications that build baseline protection. For the specific internal struggle with the nafs, the dua for protection from shaytan provides additional supplications. When temptation relates to recurring sin, the dua for repentance is the right anchor.
Common Questions
Can the dua actually stop me in the moment, or is it just for after?
It is for the moment — that is exactly when it is most powerful. The act of turning your attention to Allah, even for the few seconds it takes to say the dua, breaks the grip of the temptation's immediate pull. It does not always result in perfect resistance every time, especially at first. But with practice, the reflex gets faster and stronger.
What if I feel embarrassed to make dua because I keep falling into the same sin?
The Prophet ﷺ said: "By the One in Whose hand is my soul, if you did not sin, Allah would do away with you and bring a people who sinned, then sought forgiveness, and He would forgive them." (Sahih Muslim 2749). The embarrassment is not a reason to stop making dua — it is actually a sign that the conscience is alive. Keep making the dua. Keep asking for forgiveness.
Is the dua of Isti'adha (seeking refuge) enough on its own?
It is a starting point. The full protection comes from a combination: the morning and evening adhkar that build spiritual armor daily, the in-the-moment refuge dua when temptation arrives, and the lifestyle changes that reduce unnecessary exposure. The dua is the foundation, not the ceiling.
The Moment of Choice
Every moment of temptation is a fork. One path is the giving-in that the nafs is pushing toward. The other is the turning that the dua represents.
The beautiful thing about the dua is that it reframes the moment. Instead of the question being "do I have enough willpower?" the question becomes "do I choose to turn to Allah right now?" That is a different question, and it is one you can answer yes to even when willpower is depleted.
Say it. Even if your voice shakes. Even if you are not sure it will work this time. The act of turning is the act of choosing. And Allah honors every sincere turning toward Him.
Train Your Nafs to Reach for Dua Before Giving In
DeenBack's daily habit tracking helps you build the consistency that turns dua into a reflex — so when temptation hits, turning to Allah is the first response, not the last.
Free download. Premium features available in-app.
Frequently Asked Questions
Is there a specific dua for when I feel tempted?
Yes. The Prophet ﷺ taught us to say A'udhu billahi min al-shaytan al-rajim — I seek refuge in Allah from the accursed Shaytan. This is not just a formula; it is a real appeal to Allah for protection in the moment of vulnerability. Paired with the dua Allahumma alhimni rushdi wa a'idhni min sharri nafsi, it covers both the external (Shaytan) and internal (nafs) dimensions of temptation.
Why do I keep falling into the same temptation even after making dua?
The dua is protection, not a one-time cure. The nafs is persistent and patterns are deep. Making dua every single time temptation appears is how you gradually weaken the habit loop. Consistency matters more than perfection. Every time you reach for dua instead of giving in, you strengthen the neural pathway away from the sin.
Should I make dua before tempting situations or only when I am in them?
Both. Prophylactic dua — made in the morning before the day begins — builds baseline protection. In-the-moment dua — said the instant you feel the pull — is the emergency refuge. The morning adhkar and evening adhkar are specifically designed to provide the prophylactic protection. Learn them alongside the moment-of-temptation dua.
What if I said the dua and still gave in to the sin?
Then you make tawbah immediately and start again. The dua is a shield, not a guarantee — because the test requires real choice. What the dua does is make it easier to choose right. Over time, with consistent practice, the reflex to reach for dua before giving in becomes stronger. Do not give up because you failed once. Keep building the habit.
