Regarding blasphemy and the Islamic religion, ultimately the Qur'an asks Muhammad to leave the punishment of blasphemy to God, and that there would be justice in the afterlife.
However, whether any Quranic verses prescribe worldly punishments is debated: some Muslims believe that no worldly punishment is prescribed while others disagree. In the modern Muslim world, the laws pertaining to blasphemy vary by country, and some countries prescribe punishments consisting of fines, imprisonment, flogging, hanging, or beheading. 
