Capital punishment in Islam is traditionally regulated by the Islamic law (sharīʿa), which derived from the Quran, ḥadīth literature, and sunnah (accounts of the sayings and living habits attributed to the Islamic prophet Muhammad during his lifetime). Crimes according to the sharīʿa law which could result in capital punishment include apostasy from Islam, murder, rape, adultery, homosexuality, etc. Death penalty is in use in many Muslim-majority countries, where it is utilised as sharīʿa-prescribed punishment for crimes such as apostasy from Islam, adultery, witchcraft, homosexuality, murder, rape, and publishing pornography.

Capital crimes and sentencing

Both the hadiths and the Quran mention specific crimes for which capital punishment is a valid punishment. In the four primary schools of Sunni fiqh (Islamic jurisprudence) and the two primary schools of Shi'a fiqh, certain types of crimes mandate capital punishment.

Capital punishment in Islam

Qisas

Qisas is a category of sentencing where sharia permits capital punishment, for intentional or unintentional murder. In the case of death, sharia gives the murder victim's nearest relative or Wali () a right to, if the court approves, take the life of the killer. Hudud crimes, which are crimes against God, and are considered the most serious offences under sharia law, for which punishments are prescribed in the Quran. This includes banditry and adultery:

Capital punishment in Islam

Diyya is controversial, especially when paid to avoid trial for crimes such as murder. Concerns been raised that poor offenders face trial and capital punishment while wealthy offenders avoid even a trial by paying off qisas compensation. The Murder of Shahzeb Khan in 2012 brought particular attention to this issue in Pakistan.

Capital punishment in Islam

Hudud

Certain hudud crimes, for example, are considered crimes against Allah and require capital punishment in public. These include apostasy (leaving Islam to become an atheist or convert to another religion), fasad (mischief in the land, or moral corruption against Allah, social disturbance and creating disorder within the Muslim state) and zina (consensual heterosexual or homosexual relations not allowed by Islam, specifically pre-marital or extramarital).

Modern applications

Muslim-majority nations carry out a large percentage of the world's executions. In the year 2020, an Amnesty International report found that 88 percent of all recorded executions took place in either Iran, Egypt, Iraq or Saudi Arabia. However, 'all recorded executions' did not include data from China, where the number of executions is classified information. In several Islamic countries such as Sunni Saudi Arabia and Pakistan, as well as Shia Iran, both hudud and qisas type capital punishment is part of the legal system and in use. In others, there is variation in the use of capital punishment.

Several Muslim-majority nations have not performed an execution in several decades, though death sentences may still be given. Leaders in Algeria and Tunisia, which have not executed criminals since the early 1990s, have recently suggested a return to capital punishment.

Methods

Lethal stoning and beheading in public under sharia is controversial for being a cruel form of capital punishment. These forms of execution remain part of the law enforced in Saudi Arabia, Yemen, Qatar, United Arab Emirates, Iran and Mauritania. However no stoning has been implemented for many years.

Quotations regarding stoning can be seen in hadiths including the following:

Decapitation

Decapitation was a standard method of execution in pre-modern Islamic law. The use of decapitation for punishment continued well into the 20th century in both Islamic and non-Islamic nations. When done properly, it was once considered a humane and honorable method of execution.

Today, its use had been abandoned in most countries by the end of the 20th century. Decapitation is a legal method of execution in Saudi Arabia, Qatar, Yemen, and was reportedly used in 2001 in Iran according to Amnesty International, where it is no longer in use.

Decapitation in Islamic scripture

There is a debate as to whether the Quran discusses decapitation. Two surahs could potentially be used to provide a justification for decapitation in the context of war:

When the Lord inspired the angels (saying) I am with you. So make those who believe stand firm. I will throw fear into the hearts of those who disbelieve. Then smite the necks and smite of them each finger. (8:12) Now when ye meet in battle those who disbelieve, then it is smiting of the necks until, when ye have routed them, making fast of bonds; and afterward either grace or ransom 'til the war lay down its burdens. (47:4)