What does Islam say about blasphemy and insulting the Prophet?

Sharia, rights and societyQuran · 4Sources · 3

Short answer

Insulting Allah or the Prophet ﷺ is a grave sin in Islam, but the Quran names no fixed worldly punishment for it and tells believers to answer mockers with patience. Many classical jurists held that a court may punish it, some by death, and scholars today differ. No individual or mob has the right to punish anyone.

The fuller answer

The Quran tells the believers to keep to forgiveness, to turn away from the ignorant, and, when the ignorant address them, to answer 'peace'. It even forbids Muslims to insult the gods that others pray to, so that those people do not insult Allah in return out of ignorance. At the same time, it warns that those who malign Allah and His Messenger are cursed. So insult is serious, and the Quran's instruction for how to meet it is restraint.

The Prophet ﷺ set the example. When some Jews greeted him with 'al-samu alaykum' (death be upon you), Aisha answered with a curse, and he told her to be gentle, because Allah loves gentleness in all matters, and said that he had simply replied, 'and upon you'. Aisha also reported that he never took revenge for himself, and that the only exception was when one of Allah's sanctities was violated.

In law, honesty requires saying that many classical jurists held that a person who insults the Prophet ﷺ can be punished, many by death, and they pointed to cases such as that of Ka'b ibn al-Ashraf, whom the Prophet ﷺ described as having harmed Allah and His Messenger and who, according to the early biographies, had been inciting war against the Muslims. Scholars differed over details such as repentance and the treatment of non-Muslims, and a number of modern scholars limit the cases to insult joined to incitement or war. Blasphemy laws in some countries have been used to settle personal disputes and to persecute minorities, including Muslims. Mob killings have no basis in Islamic law at all.

From the Quran

وَلَا تَسُبُّوا۟ ٱلَّذِينَ يَدْعُونَ مِن دُونِ ٱللَّهِ فَيَسُبُّوا۟ ٱللَّهَ عَدْوًۢا بِغَيْرِ عِلْمٍۢ ۗ كَذَٰلِكَ زَيَّنَّا لِكُلِّ أُمَّةٍ عَمَلَهُمْ ثُمَّ إِلَىٰ رَبِّهِم مَّرْجِعُهُمْ فَيُنَبِّئُهُم بِمَا كَانُوا۟ يَعْمَلُونَ ﴿١٠٨﴾

Revile not those unto whom they pray beside Allah lest they wrongfully revile Allah through ignorance. Thus unto every nation have We made their deed seem fair. Then unto their Lord is their return, and He will tell them what they used to do.

إِنَّ ٱلَّذِينَ يُؤْذُونَ ٱللَّهَ وَرَسُولَهُۥ لَعَنَهُمُ ٱللَّهُ فِى ٱلدُّنْيَا وَٱلْءَاخِرَةِ وَأَعَدَّ لَهُمْ عَذَابًۭا مُّهِينًۭا ﴿٥٧﴾

Lo! those who malign Allah and His messenger, Allah hath cursed them in the world and the Hereafter, and hath prepared for them the doom of the disdained.

خُذِ ٱلْعَفْوَ وَأْمُرْ بِٱلْعُرْفِ وَأَعْرِضْ عَنِ ٱلْجَٰهِلِينَ ﴿١٩٩﴾

Keep to forgiveness (O Muhammad), and enjoin kindness, and turn away from the ignorant.

وَعِبَادُ ٱلرَّحْمَٰنِ ٱلَّذِينَ يَمْشُونَ عَلَى ٱلْأَرْضِ هَوْنًۭا وَإِذَا خَاطَبَهُمُ ٱلْجَٰهِلُونَ قَالُوا۟ سَلَٰمًۭا ﴿٦٣﴾

The (faithful) slaves of the Beneficent are they who walk upon the earth modestly, and when the foolish ones address them answer: Peace;

Sources