Hadith on Justice: Execution is only for three grave crimes

Abdullah ibn Mas’ud reported: The Messenger of Allah, peace and blessings be upon him, said, “It is unlawful to shed the blood of a Muslim person who testifies that there is no God but Allah and I am the Messenger of Allah, except in one of three cases: the married person who commits adultery, legal retaliation for murder, and a person who abandons their religion and separates from the community.

In another narration, the Prophet said, “And a man who leaves Islam and wages war against Allah and His messenger.”

Source: Ṣaḥīḥ al-Bukhārī 6484, Ṣaḥīḥ Muslim 1676

Grade: Muttafaqun Alayhi (authenticity agreed upon) according to Al-Bukhari and Muslim

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

وفي رواية أخرى قال وَرَجُلٌ يَخْرُجُ مِنَ الْإِسْلَامِ فَيُحَارِبُ اللَّهَ وَرَسُولهُ

6484 صحيح البخاري كتاب الديات باب قول الله تعالى أن النفس بالنفس والعين بالعين والأنف بالأنف والأذن بالأذن والسن بالسن

1676 صحيح مسلم كتاب القسامة والمحاربين والقصاص والديات باب ما يباح به دم المسلم