OCD isn't a preference for tidiness, and it isn't a personality trait. It's an unwanted thought that arrives uninvited — about contamination, harm, blasphemy, something terrible happening to someone you love — followed by a compulsion, an action or mental ritual done to make the anxiety momentarily bearable. The relief never lasts. The thought comes back, and the ritual has to be done again.
For Muslims specifically, OCD sometimes attaches itself to worship — repeating wudu, replaying a prayer, intrusive blasphemous thoughts that feel like a crisis of faith but aren't one. A thought that horrifies you is not the same as believing it. The distress itself is usually the proof that it isn't.
What it can look like
Physical
Tension or exhaustion from repeating a ritual until it "feels right"
Mental & emotional
Intrusive, unwanted thoughts or images that cause real distress
Fear that the thought reveals something true about you, when it doesn't
A rising anxiety that only the ritual seems to relieve, briefly
Changes in behaviour
Repeating an action — checking, washing, counting — until it "feels right"
Seeking constant reassurance from others, or from yourself
Avoiding situations that might trigger the obsession
Silently repeating words or prayers as a mental ritual
Why it happens
The exact cause isn't fully known, but genetics, differences in brain chemistry, stressful or traumatic experiences, and a tendency toward perfectionism or heightened responsibility all appear to play a part. None of it means something is fundamentally wrong with you, or with your faith — it means a specific anxiety loop has formed, and loops like this respond well to treatment.
From the Quran
مِن شَرِّ الْوَسْوَاسِ الْخَنَّاسِ
“From the evil of the retreating whisperer.”
114:4
A dua for this
أَعُوذُ بِكَلِمَاتِ اللَّهِ التَّامَّاتِ مِنْ شَرِّ مَا خَلَقَ
A'udhu bikalimatillahi at-tammati min sharri ma khalaq
“I seek refuge in the perfect words of Allah from the evil of what He has created.”
Sahih Muslim 2708
Things you can try
Do
Name the thought as OCD, not as truth or as you — "this is the loop, not a fact"
Try to sit with the anxiety a little longer than usual before doing the ritual
Talk to a GP about CBT with ERP (exposure and response prevention) — the leading evidence-based treatment for this
Keep a simple log of triggers and rituals — it helps a therapist see the pattern clearly
Be patient with recovery — the compulsion has been the coping method for a while; a new one takes time to build
Don't
Don't seek repeated reassurance from others as a long-term fix — it feeds the cycle rather than closing it
Don't treat every intrusive thought as a reflection of your character or your iman — it isn't
Don't wait for the thoughts to feel "appropriately urgent" before getting help — OCD always feels urgent; that's the condition
What does this bring up for you today?
If you need more support
OCD is very treatable — CBT with exposure and response prevention (ERP) has strong evidence behind it, and if you're 18 or over you can self-refer directly to NHS talking therapies. A GP can also refer you. If intrusive thoughts involve fears of harming someone, tell a professional honestly — this is one of the most common OCD themes there is, and it does not mean you are dangerous.
The Prophet ﷺ said: “Make use of medical treatment, for Allah has not made a disease without appointing a remedy for it.” (Abu Dawud)