Am I sinful for having bad or blasphemous thoughts I don't want?

The short answer

No. The Prophet ﷺ said Allah has forgiven this ummah the thoughts that cross their minds, as long as they do not act on them or speak them. Hating such thoughts is actually a sign of faith. What counts is what you choose to do and say.

Explanation

Many sincere Muslims panic when an ugly thought about Allah, the religion or a sin pops into their head. The Sunnah answers this very directly.

Thoughts are forgiven. The Prophet ﷺ said: "Allah has forgiven my followers the evil thoughts that occur to their minds, as long as such thoughts are not put into action or uttered" 1. The same meaning comes in Muslim 2. The Quran also teaches that "Allah does not charge a soul except [with that within] its capacity" 3, and unwanted thoughts are beyond anyone's full control.

The Companions had them too. Some Companions told the Prophet ﷺ that they found in their minds things too grave to express. He asked, "Do you really perceive it?" They said yes, and he said, "That is the faith manifest" 4. The fact that the thought horrifies you shows that faith is alive in your heart. Another man said he would rather be burnt to charcoal than say what he thought; the Prophet ﷺ praised Allah "Who has reduced the guile of the devil to evil prompting" 5.

Intentions are treated generously. If you intend a bad deed and do not do it, it is not written against you; if you leave it for Allah's sake, it is written as a good deed 6.

What to do. Do not argue with the thought or try to "prove" you do not believe it. Say "amantu billah" (I affirm my faith in Allah) 7, seek refuge in Allah and give the thought up 8, then move on to something useful. If the thoughts are relentless, speak to a trusted scholar and consider a doctor or therapist too; this is a known condition that can be treated.

The evidence

  1. 1
    Hadith Sahih al-Bukhari 5269
    Sahih Bukhari

    Allah has forgiven the ummah's evil thoughts as long as they are not acted upon or spoken.

    Narrated Abu Huraira:The Prophet (ﷺ) said, "Allah has forgiven my followers the evil thoughts that occur to their minds, as long as such thoughts are not put into action or uttered." And Qatada said, "If someone divorces his wife just in his mind, such an unuttered divorce has no effect.:

    العربية

    حَدَّثَنَا مُسْلِمُ بْنُ إِبْرَاهِيمَ، حَدَّثَنَا هِشَامٌ، حَدَّثَنَا قَتَادَةُ، عَنْ زُرَارَةَ بْنِ أَوْفَى، عَنْ أَبِي هُرَيْرَةَ ـ رضى الله عنه ـ عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏ "‏ إِنَّ اللَّهَ تَجَاوَزَ عَنْ أُمَّتِي مَا حَدَّثَتْ بِهِ أَنْفُسَهَا، مَا لَمْ تَعْمَلْ أَوْ تَتَكَلَّمْ ‏"‏‏.‏ قَالَ قَتَادَةُ إِذَا طَلَّقَ فِي نَفْسِهِ فَلَيْسَ بِشَىْءٍ‏.‏

  2. 2
    Hadith Sahih Muslim 127
    Sahih Muslim

    Allah forgave the evil promptings that arise in hearts as long as they are not spoken or acted upon.

    It is narrated on the authority of Abu Huraira that the Messenger of Allah (ﷺ) observed:Verily Allah forgave my people the evil promptings which arise within their hearts as long as they did not speak about them or did not act upon them

    العربية

    حَدَّثَنَا سَعِيدُ بْنُ مَنْصُورٍ، وَقُتَيْبَةُ بْنُ سَعِيدٍ، وَمُحَمَّدُ بْنُ عُبَيْدٍ الْغُبَرِيُّ، - وَاللَّفْظُ لِسَعِيدٍ - قَالُوا حَدَّثَنَا أَبُو عَوَانَةَ، عَنْ قَتَادَةَ، عَنْ زُرَارَةَ بْنِ أَوْفَى، عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ إِنَّ اللَّهَ تَجَاوَزَ لأُمَّتِي مَا حَدَّثَتْ بِهِ أَنْفُسَهَا مَا لَمْ يَتَكَلَّمُوا أَوْ يَعْمَلُوا بِهِ ‏"‏ ‏.‏

  3. 3
    Quran Al-Baqara · 2:286

    Allah does not burden a soul beyond its capacity.

    لَا يُكَلِّفُ ٱللَّهُ نَفۡسًا إِلَّا وُسۡعَهَاۚ لَهَا مَا كَسَبَتۡ وَعَلَيۡهَا مَا ٱكۡتَسَبَتۡۗ رَبَّنَا لَا تُؤَاخِذۡنَآ إِن نَّسِينَآ أَوۡ أَخۡطَأۡنَاۚ رَبَّنَا وَلَا تَحۡمِلۡ عَلَيۡنَآ إِصۡرࣰ ا كَمَا حَمَلۡتَهُۥ عَلَى ٱلَّذِينَ مِن قَبۡلِنَاۚ رَبَّنَا وَلَا تُحَمِّلۡنَا مَا لَا طَاقَةَ لَنَا بِهِۦۖ وَٱعۡفُ عَنَّا وَٱغۡفِرۡ لَنَا وَٱرۡحَمۡنَآۚ أَنتَ مَوۡلَىٰنَا فَٱنصُرۡنَا عَلَى ٱلۡقَوۡمِ ٱلۡكَٰفِرِينَ ۝٢٨٦

    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

  4. 4
    Hadith Sahih Muslim 132
    Sahih Muslim

    Companions found grave thoughts in their minds; the Prophet ﷺ called it "the faith manifest".

    It is narrated on the authority of Abu Huraira that some people from amongst the Companions of the Apostle (ﷺ) came to him and said:Verily we perceive in our minds that which every one of us considers it too grave to express. He (the Holy Prophet) said: Do you really perceive it? They said: Yes. Upon this he remarked: That is the faith manifest

    العربية

    حَدَّثَنِي زُهَيْرُ بْنُ حَرْبٍ، حَدَّثَنَا جَرِيرٌ، عَنْ سُهَيْلٍ، عَنْ أَبِيهِ، عَنْ أَبِي هُرَيْرَةَ، قَالَ جَاءَ نَاسٌ مِنْ أَصْحَابِ النَّبِيِّ صلى الله عليه وسلم فَسَأَلُوهُ إِنَّا نَجِدُ فِي أَنْفُسِنَا مَا يَتَعَاظَمُ أَحَدُنَا أَنْ يَتَكَلَّمَ بِهِ ‏.‏ قَالَ ‏"‏ وَقَدْ وَجَدْتُمُوهُ ‏"‏ ‏.‏ قَالُوا نَعَمْ ‏.‏ قَالَ ‏"‏ ذَاكَ صَرِيحُ الإِيمَانِ ‏"‏ ‏.‏

  5. 5
    Hadith Sunan Abi Dawud 5112
    Sahih graded by Al-Albani

    Praise be to Allah who reduced the devil's guile to whispering.

    Narrated Abdullah ibn Abbas: A man came to the Prophet (ﷺ) and said: Messenger of Allah! one of us has thoughts of such nature that he would rather be reduced to charcoal than speak about them. He said: Allah is Most Great, Allah is Most Great, Allah is Most Great. Praise be to Allah Who has reduced the guile of the devil to evil prompting. Ibn Qudamah said "reduced his matter" instead of "reduced his guile". Ibn Qudamah said "reduced his matter" instead of "reduced his guile

    العربية

    حَدَّثَنَا عُثْمَانُ بْنُ أَبِي شَيْبَةَ، وَابْنُ، قُدَامَةَ بْنِ أَعْيَنَ قَالاَ حَدَّثَنَا جَرِيرٌ، عَنْ مَنْصُورٍ، عَنْ ذَرٍّ، عَنْ عَبْدِ اللَّهِ بْنِ شَدَّادٍ، عَنِ ابْنِ عَبَّاسٍ، قَالَ جَاءَ رَجُلٌ إِلَى النَّبِيِّ صلى الله عليه وسلم فَقَالَ يَا رَسُولَ اللَّهِ إِنَّ أَحَدَنَا يَجِدُ فِي نَفْسِهِ - يُعَرِّضُ بِالشَّىْءِ - لأَنْ يَكُونَ حُمَمَةً أَحَبُّ إِلَيْهِ مِنْ أَنْ يَتَكَلَّمَ بِهِ فَقَالَ ‏"‏ اللَّهُ أَكْبَرُ اللَّهُ أَكْبَرُ اللَّهُ أَكْبَرُ الْحَمْدُ لِلَّهِ الَّذِي رَدَّ كَيْدَهُ إِلَى الْوَسْوَسَةِ ‏"‏ ‏.‏ قَالَ ابْنُ قُدَامَةَ ‏"‏ رَدَّ أَمْرَهُ ‏"‏ ‏.‏ مَكَانَ ‏"‏ رَدَّ كَيْدَهُ ‏"‏ ‏.‏

  6. 6
    Hadith Sahih al-Bukhari 7501
    Sahih Bukhari

    A bad deed intended but not done is not written; left for Allah's sake it becomes a good deed.

    Narrated Abu Huraira:Allah's Messenger (ﷺ) said, "Allah says, 'If My slave intends to do a bad deed then (O Angels) do not write it unless he does it; if he does it, then write it as it is, but if he refrains from doing it for My Sake, then write it as a good deed (in his account). (On the other hand) if he intends to do a good deed, but does not do it, then write a good deed (in his account), and if he does it, then write it for him (in his account) as ten good deeds up to seven-hundred times

    العربية

    حَدَّثَنَا قُتَيْبَةُ بْنُ سَعِيدٍ، حَدَّثَنَا الْمُغِيرَةُ بْنُ عَبْدِ الرَّحْمَنِ، عَنْ أَبِي الزِّنَادِ، عَنِ الأَعْرَجِ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏ "‏ يَقُولُ اللَّهُ إِذَا أَرَادَ عَبْدِي أَنْ يَعْمَلَ سَيِّئَةً فَلاَ تَكْتُبُوهَا عَلَيْهِ حَتَّى يَعْمَلَهَا، فَإِنْ عَمِلَهَا فَاكْتُبُوهَا بِمِثْلِهَا وَإِنْ تَرَكَهَا مِنْ أَجْلِي فَاكْتُبُوهَا لَهُ حَسَنَةً وَإِذَا أَرَادَ أَنْ يَعْمَلَ حَسَنَةً فَلَمْ يَعْمَلْهَا فَاكْتُبُوهَا لَهُ حَسَنَةً، فَإِنْ عَمِلَهَا فَاكْتُبُوهَا لَهُ بِعَشْرِ أَمْثَالِهَا إِلَى سَبْعِمِائَةٍ ‏"‏‏.‏

  7. 7
    Hadith Sahih Muslim 134
    Sahih Muslim

    When such thoughts come, say "I affirm my faith in Allah".

    It is narrated on the authority of Abu Huraira that the Messenger of Allah (ﷺ) said:Men will continue to question one another till this is propounded: Allah created all things but who created Allah? He who found himself confronted with such a situation should say: I affirm my faith in Allah

    العربية

    حَدَّثَنَا هَارُونُ بْنُ مَعْرُوفٍ، وَمُحَمَّدُ بْنُ عَبَّادٍ، - وَاللَّفْظُ لِهَارُونَ - قَالاَ حَدَّثَنَا سُفْيَانُ، عَنْ هِشَامٍ، عَنْ أَبِيهِ، عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ لاَ يَزَالُ النَّاسُ يَتَسَاءَلُونَ حَتَّى يُقَالَ هَذَا خَلَقَ اللَّهُ الْخَلْقَ فَمَنْ خَلَقَ اللَّهَ فَمَنْ وَجَدَ مِنْ ذَلِكَ شَيْئًا فَلْيَقُلْ آمَنْتُ بِاللَّهِ ‏"‏ ‏.‏

  8. 8
    Hadith Sahih al-Bukhari 3276
    Sahih Bukhari

    When Satan prompts "who created your Lord?", seek refuge with Allah and give up such thoughts.

    Narrated Abu Huraira:Allah's Messenger (ﷺ) said, "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 give up such thoughts

    العربية

    حَدَّثَنَا يَحْيَى بْنُ بُكَيْرٍ، حَدَّثَنَا اللَّيْثُ، عَنْ عُقَيْلٍ، عَنِ ابْنِ شِهَابٍ، قَالَ أَخْبَرَنِي عُرْوَةُ، قَالَ أَبُو هُرَيْرَةَ ـ رضى الله عنه ـ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ يَأْتِي الشَّيْطَانُ أَحَدَكُمْ فَيَقُولُ مَنْ خَلَقَ كَذَا مَنْ خَلَقَ كَذَا حَتَّى يَقُولَ مَنْ خَلَقَ رَبَّكَ فَإِذَا بَلَغَهُ فَلْيَسْتَعِذْ بِاللَّهِ، وَلْيَنْتَهِ ‏"‏‏.‏

This answer was compiled with the help of AI, using only the verified texts shown here. Every reference links to its source. If you find a mistake, please report it. Updated 2026-09-24

Report an issue

Tell us what is wrong. Every report is read.

What is the problem?