Ads by Muslim Ad Network

Are Sinful Thoughts Haram?

20 March, 2026
Q Is it sinful in Islam to imagine or think about committing a haram act with a fictional person in a fictional scenario, while knowing one would never intend to do it in real life?

Answer

In the Name of Allah, Most Gracious, Most Merciful. 

All praise and thanks are due to Allah, and peace and blessings be upon His Messenger.


In this fatwa:

In Islam, sinful or intrusive thoughts are not considered sins as long as a person does not act on them, speak about them, or deliberately pursue them. Authentic hadith explain that Allah forgives passing thoughts that cross the mind. Rejecting such thoughts is considered a sign of faith and may even bring reward.


Responding to your question, Sheikh Ahmad Kutty, a senior lecturer and an Islamic scholar at the Islamic Institute of Toronto, Ontario, Canada, states:

Intrusive or passing thoughts about sinful acts are not sinful as long as you do not dwell and act on them, speak about them, or deliberately pursue them. If you clearly reject such thoughts and have no intention of acting on them, you remain under Allah’s mercy.

The Prophet (peace be upon him) said: “Allah has forgiven my community for passing thoughts that cross their minds, as long as they do not speak of them or act upon them, which shows Allah’s mercy and understanding.” (Al-Bukhari and Muslim)

He also said:

“Whoever intends a bad deed but does not do it, Allah records it as a good deed.” (Muslim)

Scholars explain that unwanted thoughts or whispers (Waswas) that arise are not sins because they are not fully under a person’s control. Sin occurs only when someone deliberately entertains or pursues such thoughts with intention.

If your attitude is: “I would never do this in real life,” it demonstrates faith and restraint, and you are not blameworthy. Recognizing this can help you feel confident in your faith and efforts to stay righteous.

If such thoughts arise:

  • Ignore them and do not dwell on them.
  • Seek refuge in Allah by saying: Aʿudhu billahi min ash-shaytan ir-rajim.
  • Shift your attention to something beneficial.

In summary,

  • Passing or intrusive sinful thoughts are not sinful.
  • Sin occurs only when one acts on them or intentionally pursues them.
  • Rejecting them is a sign of faith and may even bring reward.

Have peace of mind: Allah is Most Merciful and does not hold people accountable for involuntary thoughts.

See the fatwas below for expanded discussion:

Almighty Allah knows best.