← Muhasaba

Islamic psychology

Waswas in Islam: Intrusive Thoughts and the Whispers of Shaytan

A doubt about your faith that appears from nowhere. A dread that arrives right before prayer. Islam has a specific name for these thoughts, a clear ruling on whether you are blamed for them, and a method for meeting them.

By Zaman Ishtiyaq · September 2026

Add Muhasaba as a preferred source on Google

9 min read

In this guide
  1. 01The three sources of waswas
  2. 02What the Quran says
  3. 03You are not blamed for the thought itself
  4. 04When it targets your prayer
  5. 05What waswas can look like today
  6. 06When it crosses into something clinical
  7. 07How to respond
  8. 08Begin tonight
  9. 09A five-minute nightly practice to name what looped through your day, free on iOS.

Definition

Waswas (Arabic: وسواس, "whisper") is the Islamic term for an unwanted, intrusive thought, a doubt about faith, a fear, or a suggestion toward sin, that arrives in the mind without being invited or acted on. The Quran names its source in Surah An-Nas as al-waswas al-khannas, "the retreating whisperer," who whispers into hearts and withdraws whenever Allah is remembered (114:4-5). Classical scholarship traces waswas to three possible sources: Shaytan, the nafs, and other people, and treats the thought itself as something a person is not held accountable for, however disturbing its content, so long as it is not acted on or spoken aloud. Muhasaba is also the name of an iOS journaling app built around nightly Islamic self-accounting, designed in part to give these thoughts a place to be named and released each night rather than left to loop through the day unspoken.

Almost every Muslim experiences waswas at some point, during wudu, mid-sujood, in the middle of an ordinary afternoon with no warning at all. What separates a healthy response from a harmful one is not whether the thought arrives; it will. It is whether the person having it knows the ruling, has a method ready, and can tell the difference between a whisper passing through and a whisper being entertained.

The three sources of waswas

Scholars did not treat every intrusive thought as coming from the same place. The tradition names three possible origins, and identifying which one is at work changes how a person should respond to it.

01

Shaytan

The whisperer named directly in Surah An-Nas, working through suggestion rather than force. Shaytan cannot compel a person to sin; he can only propose, repeat, and time the proposal for a moment of weakness: right before prayer, right after a mistake, right when the heart is already tired.

02

The nafs

The nafs can generate its own noise independent of Shaytan: self-doubt, fear, appetite, the mind's habit of returning to whatever unsettled it earlier in the day. Not every dark thought needs an external cause; some are simply the untrained self talking.

03

Other people

A careless remark, a scholar's answer taken out of context, an argument overheard years ago; waswas can also be planted by other people and simply resurface later, detached from its original source, as if it had appeared from nowhere.

What the Quran says

Surah An-Nas, the final chapter of the Quran, is built entirely around this problem. Along with Surah Al-Falaq, it forms the last two of the four quls, together called al-Mu'awwidhatayn, "the two that seek refuge," recited specifically for protection.

"Say: I seek refuge in the Lord of mankind, the King of mankind, the God of mankind, from the evil of the retreating whisperer, who whispers into the breasts of mankind, from among the jinn and mankind."

— Surah An-Nas, 114:1-6

The surah's structure is itself instructive. It does not ask Allah to remove the whisperer permanently, and it does not promise the whispering will stop for good. It teaches a response: naming the source, describing precisely how it operates (it whispers, then retreats, then whispers again), and turning to refuge rather than argument. Fighting a whisper on its own terms, reasoning with it, trying to out-think it, tends to feed it. Seeking refuge starves it.

You are not blamed for the thought itself

The single most important ruling on waswas is also the most reassuring one, and it comes from an authentic hadith agreed upon by both major collections.

"Allah has forgiven my Ummah for what crosses their minds, so long as they do not act upon it or speak it."

— Sahih al-Bukhari 2528, Sahih Muslim 127

This hadith draws a precise line. Hadith al-nafs, the inner talk of the self, the unbidden thought, the flash of doubt, the ugly image that surfaces uninvited, sits on one side of the line, outside accountability entirely. Speech and action sit on the other side. A person who is horrified by a thought about Allah that appeared without warning has not sinned by having it; scholars have long noted that the horror itself is a sign of faith, since indifference to such a thought would be the more worrying state. The sin, if it happens at all, only begins where the thought is welcomed, rehearsed on purpose, or turned into words spoken aloud.

When it targets your prayer

Waswas has a favourite target: the moments a person is trying hardest to be present with Allah. A companion of the Prophet ﷺ once described exactly this problem and received a specific, practical instruction in return.

Uthman ibn Abi al-As told the Prophet ﷺ that Shaytan was coming between him and his prayer, confusing his recitation. The Prophet ﷺ replied: "That is a devil called Khinzib. When you feel his effect, seek refuge with Allah from him and spit drily three times to your left." Uthman later said he did exactly that, and Allah removed it from him (Sahih Muslim 2203a).

The instruction is worth noticing for what it does not say. The Prophet ﷺ did not tell him to restart the prayer, repeat the verse until it felt right, or examine why the thought had come. The response is short, physical, and final: name it, seek refuge, spit lightly to the left without breaking the prayer, and continue. That same principle of interrupting briefly, then moving on rather than looping, shows up again in the ruling on doubts about khushoo more broadly: presence in prayer is protected by returning attention gently, not by punishing yourself for having lost it in the first place.

What waswas can look like today

The classical texts describe the mechanism; the specific content changes with the person and the era. A few patterns come up constantly.

Doubt about wudu or the prayer count

Repeating wudu, rewashing a limb three or four times instead of the sunnah three, restarting a rakah because of a vague feeling rather than certain knowledge. This is the most common and most treatable form, since Islamic law already gives it a firm ruling, and it is often the form people notice first because it costs visible time, a five-minute wudu stretching to twenty.

Doubts about faith itself

A sudden, unwanted thought that contradicts belief, about Allah, the Quran, or the Prophet ﷺ, appearing with no build-up and causing real distress. The distress is the evidence of faith, not evidence against it; a heart with no faith at stake would have no reason to be shaken by the thought in the first place, which is part of why scholars treat the reaction itself as reassurance rather than alarm.

Intrusive fears about harming others

Unwanted, frightening images of hurting someone loved, with no actual desire or intent behind them, sometimes arriving at the exact moment a person is holding a knife in the kitchen or standing near an edge. This pattern is well documented outside Islamic contexts too and is not a sign of dangerous character; the fear of acting on the thought is itself evidence the person has no intention of acting on it.

Doubts about a spouse, marriage, or major decision

A looping "what if" that returns nightly regardless of how it was answered the night before, resistant to reasoning because reasoning was never really the problem. Istikhara can settle the decision itself, but the nightly return of the same exact doubt, after the decision is already made, is usually waswas rather than genuine unresolved uncertainty.

When it crosses into something clinical

Occasional waswas is a normal part of religious life and does not need treatment beyond the responses above. A more severe, repetitive version exists too, and Islamic scholarship has its own name for it: waswas al-qahri, "overwhelming whispering." Research published through the Yaqeen Institute on Muslim mental health describes this pattern as the religious presentation of obsessive-compulsive disorder, the same underlying clinical picture as OCD, expressed through religious rituals like repeated wudu or repeated prayer rather than through contamination fears or checking behaviour.

The distinguishing factor is not the content of the thought but its frequency and cost: when whispering is constant, exhausting, and interferes with work, worship, sleep, or relationships, it has moved past what ta'awwudh and the fiqh of doubt were designed to resolve on their own. The same research notes that Muslim communities have historically relied on imams for this, without the clinical training the condition often needs, and recommends pairing religious guidance with a therapist who understands the religious content rather than treating it as delusion. That combination, an imam who takes the spiritual dimension seriously alongside a clinician trained in OCD, tends to outperform either one alone. More on the broader framework is covered on our Muslim mental health page.

How to respond

Name it and let it be separate from you

A thought that horrifies you is not a confession; it is a whisper you happened to notice. Calling it waswas, out loud or in your own head, puts distance between the thought and your identity before you have even responded to its content.

Do not argue with it

Debating a whisper on its own terms, trying to disprove it, reason it away, or find the thought that will finally make it stop, treats it as worth the engagement. Refusing to engage, per the model in Surah An-Nas, tends to work faster than winning the argument.

Seek refuge, then continue

Say "a'udhu billahi minash-shaytanir-rajim," and if the whisper struck mid-prayer, spit lightly to the left as Uthman was taught, then continue from where you left off rather than restarting.

Trust certainty over doubt

For wudu and rakah counts specifically, act on what you knew for certain before the doubt arrived, not on the doubt itself. Restarting trains the whisper to return louder; finishing on your last certain state trains it to lose its grip.

Give it somewhere to land besides your day

A whisper that is never named tends to circle back on repeat. Writing it down at night, in a muhasaba practice or elsewhere, gives it one fixed place to exist instead of an open loop running through the whole day, and lets a person notice patterns (the same doubt at the same hour, the same trigger) that are much harder to spot from inside the loop itself. Over a few weeks, a written record often shows that the whisper is far more repetitive than it feels in the moment: the same handful of doubts recurring on a schedule, rather than an endless, unpredictable supply of new ones.

Begin tonight

The next time an unwanted thought shows up uninvited, the ruling has not changed: you are not blamed for having it, only for what you do with it. Name it, seek refuge, and move on rather than restart. If it is frequent enough to be exhausting rather than occasional, that is worth naming to a therapist and an imam both, not something to manage silently.

Most nights the whisper is smaller than it feels in the moment. Writing it down, even in a single line, is often enough to see that clearly.

Give the whisper somewhere to land

A five-minute nightly practice to name what looped through your day, free on iOS.

The Muhasaba app guides a nightly muhasaba, written or spoken, and closes with an ayah and a dhikr chosen for what you actually wrote.

Download on the App Store

New to muhasaba? Learn what muhasaba al-nafs means →

Discuss on X