By   ·  Islamic Psychology Researcher and Islamic CBT Practitioner

If you have ever stood in salah and been horrified by the thoughts that appeared — blasphemous images, doubts about Allah, sexual content, violent intrusions — you are not alone, and you are not broken. This experience is so common that it has been named, analysed, and addressed by Islamic scholars for over a thousand years.

The silence around it in Muslim communities, however, means that many Muslims suffer alone — convinced their thoughts prove something terrible about their faith, their character, or their standing with Allah. This article exists to dismantle that suffering with the actual Islamic position.

مِن شَرِّ الْوَسْوَاسِ الْخَنَّاسِ ۝ الَّذِي يُوَسْوِسُ فِي صُدُورِ النَّاسِ

"From the evil of the retreating whisperer — who whispers into the hearts of people."

— Surah An-Nas (114:4–5)

The Islamic position: intrusive thoughts are not your sin

The Prophet ﷺ said: "Allah has forgiven my ummah for whatever crosses their minds, as long as they do not act upon it or speak of it." (Bukhari & Muslim). This hadith is unequivocal. The thought that arrives uninvited — however disturbing its content — is not your responsibility. You are not accountable for it.

The Quran's naming of Shaytan as al-Khannās — the one who retreats — is significant. It acknowledges that intrusive thoughts are a specific attack on moments of worship, and that the response is to continue rather than flee. The whisperer retreats when Allah is remembered. The prescription is to remember Allah and keep praying — not to abandon salah until the thoughts stop, which they will not.

Why intrusive thoughts intensify during salah — and what that actually means

Many Muslims notice that their intrusive thoughts are worse during salah than at any other time. This is distressing — it feels like proof that something is uniquely wrong with them spiritually. In fact it reflects two completely understandable mechanisms:

The crucial mistake: what makes it worse

The most common response to intrusive thoughts in salah — and the response that makes them worse — is to engage with them. To argue against them mentally, to repeat the portion of prayer where the thought occurred, to seek reassurance that the prayer counted, to check whether the thought constitutes kufr. Each of these responses signals to the brain that the thought is important and threatening, which increases its frequency and intensity.

This is the identical mechanism that drives OCD. And the Islamic scholars described it with remarkable precision: Ibn al-Qayyim wrote that responding to waswas with attention and argument feeds it; dismissal and continuation are the cure. The modern clinical name for this approach is Exposure and Response Prevention (ERP) — resist the compulsion, tolerate the uncertainty, continue the action. See our detailed article: Waswas vs OCD: How to Tell the Difference.

A practical approach for salah

  1. When a disturbing thought arrives: Say a'udhu billahi min ash-shaytan ir-rajeem silently once. Return your attention to the prayer.
  2. Do not repeat the rakah because of the thought. Do not check whether the prayer was valid. Complete the salah as if the thought had not occurred — because for the purposes of your salah's validity, it did not.
  3. Do not seek reassurance from others about whether specific thoughts invalidate prayer. One clear answer to a genuine fiqh question is appropriate. Repeated reassurance-seeking is a compulsion that strengthens the cycle.
  4. Lower the standard. The goal is not a thought-free salah. It is a completed salah. Every completed salah despite intrusive thoughts is a significant spiritual achievement.
  5. If the pattern is significantly affecting your ability to pray — if salah takes an abnormally long time, if you avoid prayer because of the thoughts, if the distress is severe — please consider professional support. See: How to Find a Muslim Therapist.

Free Resource

Chapter 1 of Healing the Heart & Mind — free

The complete Islamic CBT programme integrates clinical evidence with Quran, Sunnah and classical Islamic psychology. Chapter 1 is free, no obligation.

Send me Chapter 1 free →

Free PDF · No spam · Unsubscribe anytime

Frequently asked questions

What does Islam say about intrusive thoughts during salah?

Islam's position is unambiguous: intrusive thoughts during salah do not invalidate the prayer and are not sinful. The Prophet ﷺ confirmed that Allah has forgiven the Muslim ummah for whatever crosses their minds, as long as they do not act upon it or speak of it (Bukhari & Muslim). The Quran names Shaytan as al-Khannās — the one who whispers and then retreats when Allah is remembered — precisely to name this experience and give it a framework. The thought is not yours. The response is.

Do intrusive thoughts invalidate salah?

No. Intrusive thoughts — including blasphemous, sexual, or violent content — do not invalidate salah. The validity of prayer depends on its physical conditions (tahara, qibla, intention) and its completion, not on the internal experience of the worshipper. A Muslim who completes their salah despite intrusive thoughts has fulfilled the obligation. The distress caused by the thoughts does not constitute a failure of worship.

Why do I get more intrusive thoughts when I try to pray?

This pattern — intrusive thoughts intensifying specifically during acts of worship — is well-recognised in both Islamic scholarship and modern psychology. Islamically, it reflects Shaytan's specific hostility to moments of connection with Allah. Psychologically, it reflects a well-documented phenomenon called thought rebound: the more you try to suppress a thought, the more it intrudes. Attempts to have a 'perfect' prayer free of all distraction set up exactly the conditions that produce more intrusive content.

How do I stop intrusive thoughts during salah?

The classical Islamic advice is: acknowledge the thought briefly (seek refuge in Allah — a'udhu billahi min ash-shaytan ir-rajeem), then return attention to the prayer without engaging, arguing with, or trying to neutralise the thought. Do not repeat acts of worship because of the thoughts. This matches exactly what modern ERP (Exposure and Response Prevention) therapy recommends for OCD: acknowledge, do not engage, tolerate uncertainty, continue. Repetition maintains and worsens the cycle.