Scholars agree

I get intrusive, blasphemous thoughts about Allah. Am I sinning?

No. Thoughts that arrive uninvited and horrify you are not held against you — and the distress you feel about them is itself evidence of faith rather than against it. The Prophet ﷺ was asked about exactly this and gave a short, practical instruction: stop engaging, seek refuge in Allah, and move on. Do not argue with the thought.

The four schools concur on this.

The long answer

This frightens people badly, and the fear usually makes it worse, so the answer matters.

The case was put to the Prophet ﷺ directly, and his answer treats it as a known phenomenon rather than a crisis: “Satan comes to one of you and says, ‘Who created so-and-so?’ till he says, ‘Who has created your Lord?’ So when he inspires such a question, one should seek refuge with Allah and stop such thoughts” (Sahih al-Bukhari 3276).

What that establishes:

  • The thoughts are recognised, expected, and specifically not treated as belief.
  • The instruction is to disengage, not to defeat the thought. You are not required to argue your way out of it.
  • Companions who experienced this and found it unbearable were reassured rather than corrected.

Why the distress is a good sign: someone who did not believe would feel nothing at the thought. That it appals you is the measure of what you actually hold.

Practically, what tends to help:

  • Say a‘ūdhu billāhi min ash-shaytān ir-rajīm, and then genuinely change what you are doing — stand up, speak to someone, start a task.
  • Do not analyse the thought, try to disprove it, or perform mental rituals to cancel it. Engagement is what feeds it.
  • Do not confess it repeatedly or seek reassurance in a loop; that becomes part of the mechanism.
  • Keep praying. The impulse to withdraw from worship until you feel “clean” is the wrong direction.

“Allah does not charge a soul except with that within its capacity. It will have the consequence of what good it has gained, and it will bear the consequence of what evil it has earned. "Our Lord, do not impose blame upon us if we have forgotten or erred. Our Lord, and lay not upon us a burden like that which You laid upon those before us. Our Lord, and burden us not with that which we have no ability to bear. And pardon us; and forgive us; and have mercy upon us. You are our protector, so give us victory over the disbelieving people."” (Qur’an 2:286)

One honest addition. When this is persistent, ritualised and dominates daily life, it closely resembles a recognised anxiety pattern, and it responds to treatment. Seeking that help is not a lapse of faith — many scholars advise it explicitly.

What it rests on