Islam and blasphemy which were rarely enforced in pre-modern Islamic societies are often talked about and even though the verse doesn't mention blasphemy some commentators have used the following two examples to justify punishments for blasphemy such as, verse 5:33 which prescribes prison, mutilation or death for those "who wage war against Allah and His Messenger" and Al-Ahzab which is the 33rd chapter (srah) of the Quran (Q33) referenced here 33:5761 which has also been used by some commentators to justify blasphemy punishments but other commentators believe the former verse only applies to those who commit crimes against human life and property.
Blasphemy laws were rarely enforced in pre-modern Islamic societies. A number of verses in the Qur'an have been interpreted as relating to blasphemy. Some verses are cited as evidence that the Qur'an does not prescribe punishments for blasphemy, while other verses are cited as evidence that it does. The only verse that directly mentions blasphemy (sabb) is 6:108. The verse calls on Muslims to not blaspheme against deities of other religions', lest people of that religion retaliate by blaspheming against Allah. Verse 5:33 prescribes prison or mutilation or death for those "who wage war against Allah and His Messenger". Even though the verse doesn't mention blasphemy (sabb), some commentators have used to justify punishments for blasphemy. Other commentators believe this verse only applies to those who commit crimes against human life and property. 33:5761 have also been used by some commentators to justify blasphemy punishments. However, other scholars opined that verses 33:5761 could only have been acted upon during the life of the prophet and since the demise of Muhammad they are no longer applicable. Other passages are not related to any earthly punishment for blasphemy, but prescribe Muslims to not "sit with" those who mock the religion  although the latter are admonishments directed towards a witness of blasphemy rather than the guilty of blasphemy: According to Shemeem Burney Abbas, the Qur'an mentions many examples of disbelievers ridiculing and mocking Muhammad, but never commands him to punish those who mocked him. Instead, the Qur'an asks Muhammad to leave the punishment of blasphemy to God, and that there would be justice in the afterlife. Al-Ahzab (Arabic: , al-ahzab; meaning: The Confederates, aka: "The Clans", "The Coalition", "The Combined Forces") is the 33rd chapter (surah) of the Quran (Q33) with 73 verses (ayat). The surah takes its name from the mention of the parties (al-ahzab), or confederates (an alliance among the Quraysh and other tribes), who fought the Muslims at the Battle of the Trench (5/627), also known as the Battle of the Parties and as the Siege of Madinah. 
