- Published on
How to Stop Bad Thoughts About Allah: Dealing With Waswas
- Authors

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

You are praying, or going about your day, and suddenly a thought appears in your mind about Allah that horrifies you. A doubt, a blasphemous phrase, a disturbing image. And your first reaction is panic — what does this mean? Am I a hypocrite? Have I lost my faith?
Those thoughts are not yours. They are waswas — the whispers of Shaytan — and the Prophet ﷺ gave the Companions the exact same guidance he is giving you now through the hadith: these thoughts are normal, they are not sins, and there is a clear method to deal with them.
Why This Matters
The Companions came to the Prophet ﷺ in distress about the exact same thing you are experiencing. They said: "We find in ourselves thoughts that any of us would consider too grave to speak of." The Prophet ﷺ replied:
"That is pure faith."
— (Sahih Muslim 132)
The fact that bad thoughts about Allah horrify you is itself proof that your iman is alive. Shaytan does not bother targeting a person who has already abandoned their faith. He targets the ones who are connected. Your distress is not a symptom of weak faith — it is evidence of strong faith under attack.
Allah also said:
وَإِمَّا يَنزَغَنَّكَ مِنَ الشَّيْطَانِ نَزْغٌ فَاسْتَعِذْ بِاللَّهِ ۚ إِنَّهُ سَمِيعٌ عَلِيمٌ
"And if an evil suggestion comes to you from Shaytan, then seek refuge in Allah. Indeed, He is Hearing and Knowing."
— (Surah Al-A'raf, 7:200)
Step-by-Step Guide to Handling Bad Thoughts About Allah
Step 1: Recognize the thought as waswas immediately.
The moment a disturbing thought about Allah appears, name it for what it is: waswas from Shaytan. Do not begin an internal debate about the content of the thought. Do not analyze whether it is true, or examine it from every angle. That is exactly what Shaytan wants — engagement. He does not care if you win the argument; he cares that you are playing his game.
Step 2: Say the ta'awwudh without pause.
Say immediately:
أَعُوذُ بِاللَّهِ مِنَ الشَّيْطَانِ الرَّجِيمِ
A'udhu billahi minash shaitanir rajeem
"I seek refuge with Allah from the accursed Shaytan."
Then blow lightly to your left three times. This is the Prophetic method. (Sahih Muslim 2203). Act on it before you do anything else with the thought.
Step 3: Redirect immediately with dhikr or Quran.
After the ta'awwudh, do not sit with the space the thought occupied. Fill it immediately. Recite Surah Al-Ikhlas:
قُلْ هُوَ اللَّهُ أَحَدٌ اللَّهُ الصَّمَدُ لَمْ يَلِدْ وَلَمْ يُولَدْ وَلَمْ يَكُن لَّهُ كُفُوًًا أَحَدٌ
"Say: He is Allah, the One. Allah, the Eternal Refuge. He neither begets nor is born, nor is there to Him any equivalent."
— (Surah Al-Ikhlas, 112:1-4)
Surah Al-Ikhlas directly affirms the tawhid that waswas attacks. It is both a spiritual and practical counter.
Step 4: Do not engage with the content of the thought.
This is the single most important rule. Shaytan's waswas functions like a trap — the trap only works when you step into it. The moment you start thinking "but what if the thought is right?" or "I need to argue against this," you are inside the trap. The escape is not arguing — it is leaving the conversation entirely.
Step 5: Build the morning and evening adhkar as daily protection.
The Prophetic morning and evening adhkar include multiple supplications and ayat that specifically protect against shaytan's influence. Ayatul Kursi, the three Quls, and the morning dua for protection create a daily spiritual shield. People who do their adhkar consistently report significantly less waswas. This is a maintenance practice, not an emergency tool.
Step 6: Reduce idle, empty time.
Waswas flourishes when the mind is unoccupied. The whispers have more room in boredom than in purposeful activity. Build your day with structured time for prayer, Quran, work, and intentional rest. The less time your mind is adrift, the fewer opportunities Shaytan finds.
Step 7: Do not seek reassurance compulsively.
One of the traps waswas creates is a cycle of seeking reassurance — asking the same question repeatedly, checking your faith repeatedly, needing constant confirmation. This is OCD-like waswas (was-was qahri) and the treatment is not more reassurance but intentional refusal to engage with the doubt-cycle. Act on your certainty, not your fear.
Making It Stick — The Habit Science
The Islamic prescription for waswas is not analysis — it is pattern interruption. Modern psychology agrees: the most effective treatment for intrusive thoughts is to acknowledge them without engaging and immediately shift attention. This is exactly what the ta'awwudh does.
The challenge is that this feels counterintuitive. The mind wants to resolve disturbing content. But with waswas, resolution comes not from answering the thought but from refusing to give it space.
Build the morning and evening adhkar into your daily schedule. See how to overcome waswas in Islam for the full framework and how to fight shaytan's whispers for the broader strategy. For thoughts specifically during salah, how to stop bad thoughts in salah covers the specific tools.
Build Your Daily Adhkar Shield
DeenBack helps you track morning and evening adhkar — the Prophetic protection against waswas. Make it a daily habit and watch the whispers lose their grip.
Free download. Premium features available in-app.
Common Mistakes to Avoid
Treating the thought as your own. A thought you did not choose and do not want is not yours. Do not take ownership of Shaytan's content. This is one of the cruelest tricks waswas plays — making you feel guilty for something you did not produce.
Trying to disprove the thought. The more you argue against a bad thought, the more real and present it becomes. The exit from waswas is not a better argument. It is a complete change of subject.
Asking if you are still Muslim after each thought. Waswas thrives on uncertainty. Feeding it with more questioning makes it worse. Your iman is intact. The horror you feel is the proof.
Giving up salah or dhikr because the thoughts appear there. This is exactly what Shaytan wants. The antidote to waswas in worship is more worship, with the Prophetic tools applied.
Common Questions
Can bad thoughts about Allah make you lose your faith? No. Faith is not lost by thoughts you do not choose. Faith is lost by deliberate rejection and choice. A thought that enters your mind without your invitation is not a choice, and the distress you feel about it is itself evidence that you have not rejected Allah.
What if the thoughts keep coming back no matter what I do? Persistent waswas of this intensity — thoughts you cannot interrupt through normal means — may benefit from speaking with a trusted scholar or, if it is affecting your daily functioning, an Islamic-aware therapist. Severe waswas (was-was qahri) is a recognized condition with specific methods of treatment beyond standard dhikr.
Is there a specific dua to stop bad thoughts about Allah? The ta'awwudh is the primary tool. Reciting Surah Al-Ikhlas, Ayatul Kursi, and the last two ayat of Surah Al-Baqarah are also specifically recommended for protecting the heart. Build these into your daily adhkar.
Start Today, Not Tomorrow
You do not need to wait until the thoughts stop to feel like a good Muslim. They are going to keep appearing until you build the habits that reduce their power. Start with the morning adhkar today — even if imperfect. Start saying the ta'awwudh the next time a bad thought appears — even if you do not feel it changes anything immediately.
See how to stop intrusive thoughts Islamically for more tools, and what is the nafs in Islam to understand the spiritual terrain you are working in.
Track Your Adhkar Streak
Morning and evening adhkar done consistently are your most powerful defense against shaytan's whispers. DeenBack makes tracking easy so the habit actually sticks.
Free download. Premium features available in-app.
Frequently Asked Questions
Are bad thoughts about Allah a sin?
No. The Prophet explicitly said these thoughts are not held against the believer. (Sahih Muslim 132). The sin would be to dwell on them, entertain them, or act on them. A thought that passes through your mind without your choice is not yours — it is waswas from Shaytan. Recognize it, reject it, and move on.
Why do bad thoughts about Allah come during salah?
Shaytan intensifies his effort precisely when you are in salah, because that is when your connection to Allah is most direct. This is a sign that your salah matters, not that you are corrupt. The Prophet said: 'When any of you stands to pray, Shaytan comes and creates confusion.' (Sahih Muslim 389). Refocus by saying A'udhu billah and continuing.
What should I do immediately when a bad thought about Allah occurs?
Say: A'udhu billahi minash shaitanir rajeem — and do not engage with the thought. Do not try to argue against it or examine it. Shaytan wants you to engage. Blow lightly to your left three times, turn to a different direction, and immediately begin dhikr or recitation of Quran. This is the Prophetic method from Sahih Muslim 2203.
Does having these thoughts mean my faith is weak?
The opposite. The Prophet said these thoughts — the horror you feel at them — is a sign of pure faith. (Sahih Muslim 132). A person who has left Islam does not feel disturbed by anti-faith thoughts. The fact that you are distressed by them proves your iman is alive. The waswas targets believers, not those who have already lost their faith.
How do I stop these thoughts from coming back?
Build the daily adhkar as a protective shield — morning and evening adhkar include ayat and supplications that specifically guard against shaytan's whispers. Reduce idle time, since waswas increases when the mind is unoccupied. And remember: you do not need to solve or answer the thought. You need to replace it with dhikr. Engagement is shaytan's goal.
