9 min read

Dua and Dhikr When the Urge Hits

Short, authentic duas and dhikr for the two-second window before a slip — memorized words for the moment, and what to say when you have none.

There is a gap. It is small — maybe two seconds — between the moment an urge first pulls at you and the moment you act on it. In that gap, you are still free. After it closes, it gets much harder to turn back. Most of what helps in that gap is not a long lecture to yourself about willpower. It is a few words, already memorized, that turn your attention from the pull toward Allah.

This article gives you those words. Some are dua — asking Allah directly. Some are dhikr — remembering Him, which quiets the moment on its own. Every quote here has a reference. If a line is not attributed to the Quran or a hadith collection, it is simply plain speech you can use in your own words, and it is labeled that way.

Why words matter in the moment

An urge is rarely just a decision. It is a pull — toward a memory, an image, a feeling — that arrives faster than reasoning does. Trying to out-argue it in the moment (“this is bad for me,” “I promised myself”) often loses, because you are reasoning with a mind that is no longer fully reasoning.

Dhikr works differently. It does not argue with the urge. It interrupts it. Saying a short phrase out loud, or even under your breath, pulls your attention back into your own body and back to Allah. It is the same reason a person startled by a loud noise stops mid-thought. A word said with intention breaks the chain.

This is also why the words need to be ready before the moment, not invented during it. Nobody composes a fluent, sincere dua while their hand is already reaching for the phone. You prepare the words when you are calm, the same way you would prepare an emergency contact number: not because you expect to need it every day, but because you will be glad you have it the one day you do.

Short dhikr for the two-second window

These do not need explanation or reference beyond what every Muslim already knows — they are the shortest tools you have, and the ones to reach for first.

  • “A’udhu billahi min ash-shaytanir-rajim” — I seek refuge in Allah from the accursed Shaytan. Say this the instant you notice the pull. It names what is happening: this is a whisper, not a fact about you.
  • “Astaghfirullah” — I seek Allah’s forgiveness. Repeat it two or three times. It turns your mouth and mind toward Allah instead of toward the screen or the thought.
  • “La hawla wala quwwata illa billah” — There is no power and no strength except with Allah. This is for the moment you feel too weak to resist on your own, which is often exactly true. Say it as an honest admission, not a magic formula, and ask Allah to carry what you cannot.

Say one of these the moment you notice the pull, not after you have already given it a second look. If you have read our article on lowering the gaze, this is the same principle in words instead of a turned head: act in the first second, not the fifth.

Duas from the Sunnah for protection and purity

These are longer, and worth memorizing over a few days rather than in one sitting. Each is authentic and referenced — write one on a sticky note, your phone’s lock screen, or a card in your wallet until it is memorized.

1. Asking for guidance, piety, chastity and self-sufficiency

اللَّهُمَّ إِنِّي أَسْأَلُكَ الْهُدَى وَالتُّقَى وَالْعَفَافَ وَالْغِنَى Allahumma inni as’aluka al-huda, wat-tuqa, wal-’afafa, wal-ghina. “O Allah, I ask You for guidance, piety, chastity, and self-sufficiency.”

The Prophet ﷺ used to say this regularly (Sahih Muslim 2721). Notice that chastity (’afaf) sits right alongside guidance and piety — it is treated as something to keep asking Allah for, not something you either have or don’t. Say this in the morning as a standing request, and again in the moment an urge appears.

2. Asking Allah to purify the soul

اللَّهُمَّ آتِ نَفْسِي تَقْوَاهَا وَزَكِّهَا أَنْتَ خَيْرُ مَنْ زَكَّاهَا أَنْتَ وَلِيُّهَا وَمَوْلَاهَا Allahumma aati nafsi taqwaha, wa zakkiha, anta khayru man zakkaha, anta waliyyuha wa mawlaha. “O Allah, grant my soul its piety and purify it. You are the best to purify it. You are its Guardian and its Master.”

This is also from the Sunnah of the Prophet ﷺ (Sahih Muslim 2722). It is an honest admission that you cannot purify your own heart by sheer effort — you are asking the One who can.

3. Seeking refuge from the evil of your senses and desires

Shakal ibn Humayd, may Allah be pleased with him, once asked the Prophet ﷺ to teach him a prayer, and the Prophet ﷺ told him to say:

اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنْ شَرِّ سَمْعِي وَمِنْ شَرِّ بَصَرِي وَمِنْ شَرِّ لِسَانِي وَمِنْ شَرِّ قَلْبِي وَمِنْ شَرِّ مَنِيِّي Allahumma inni a’udhu bika min sharri sam’i, wa min sharri basari, wa min sharri lisani, wa min sharri qalbi, wa min sharri maniyyi. “O Allah, I seek refuge in You from the evil of my hearing, the evil of my sight, the evil of my tongue, the evil of my heart, and the evil of my desires.”

This hadith is collected in Riyad as-Salihin (1483), also narrated in Sunan Abi Dawud and Jami’ at-Tirmidhi (3492). Notice it names five specific doors — ears, eyes, tongue, heart, desire — because the Prophet ﷺ knew temptation rarely comes through only one of them. If you say this each morning, you are asking Allah in advance to guard every door before the day tests them.

A Quranic dua: Yusuf’s example

The Quran gives us a direct example of a prophet asking Allah for protection from desire rather than trusting his own strength. When Yusuf, peace be upon him, was tested, he did not simply resolve to resist — he turned to Allah:

“He said, ‘My Lord, prison is more beloved to me than that to which they invite me. And if You do not turn away their plan from me, I might incline toward them and be of the ignorant.’” (Quran 12:33)

Read that closely. Yusuf, a prophet protected by Allah, still said if You do not turn it away from me, I might incline toward it. He did not claim to be above temptation on his own strength. He asked Allah to turn it away from him. That is the model: not “I am strong enough,” but “O Allah, turn this away from me.”

The Quran also gives a short dua for the whispers that lead toward sin in the first place:

“My Lord, I seek refuge in You from the incitements of the devils, and I seek refuge in You, my Lord, lest they be present with me.” (Quran 23:97–98)

Say this when you notice the pull building before it becomes a specific urge — while scrolling, while bored, while alone at night.

When you have no memorized words

Sometimes an urge hits and your mind is blank. You cannot recall a single Arabic phrase. This is normal, and it does not mean you have failed. In that moment, speak to Allah in your own language, in your own words. There is nothing wrong with saying, silently or out loud:

“O Allah, You see me right now. I am weak in this moment. Please help me turn away. Don’t leave me alone with this.”

That is a valid dua. Allah does not require Arabic or eloquence from you — He asks for a sincere heart turning toward Him. The scholars are clear that dua in your own language, in your own words, is accepted. Use the memorized lines when you have them, and your own honest words when you don’t. Both reach Allah.

Making this a habit, not a scramble

A dua you have never said before is hard to remember exactly when you need it most. Build it into your days so it is already familiar by the time an urge tests you.

  1. Pick one line this week. Do not try to memorize all five today. Choose the one that speaks to you most — many people start with “Astaghfirullah” or the dua asking for ’afaf (chastity) — and say it ten times today, out loud, until it is easy.
  2. Attach it to a fixed moment. Say your chosen dua after every fard prayer for a week. Five repetitions a day, tied to something you already do, is how it moves from paper into memory.
  3. Write it somewhere you will actually see it. A note on your phone’s lock screen, a small card in your wallet, a sticky note on your desk. The two-second window is not the time to search for a transliteration.
  4. Add a new one every few days. Once the first is automatic, add the second. By the end of two weeks, you can have three or four ready, covering the morning, the sudden pull and the drifting boredom that leads to it.
  5. Track it alongside your streak. If you are using the DeenGuard streak tracker, treat “said my dua when it mattered” as its own small win worth noting in your nightly review, separate from whether you slipped or not.

If you said the words and slipped anyway

Sometimes you will say the dua and still fall. That does not mean the dua failed, and it does not mean Allah ignored you. Dua is not a spell that removes your free will — it is you asking for help while still being asked to choose. If you slip after asking, the asking was not wasted. Make tawbah, restart your counter, and keep the same words ready for next time. Read our article on tawbah after a slip for exactly what to do in the hour that follows.

A closing dua

O Allah, I ask You for guidance, piety, chastity and self-sufficiency, as Your Messenger ﷺ used to ask. Grant my soul its taqwa and purify it — You are the best to purify it. Guard my hearing, my sight, my tongue, my heart and my desires from every evil. When the whisper comes and I have no words ready, hear me anyway. Turn temptation away from me as You turned it away from Your prophet Yusuf. Do not leave me alone with my own soul even for a moment. Ameen.

Pick one line from this article. Say it ten times today. It will be there for you when you need it most.