BUKHARI 6878: from ʿAbdullāh —
Messenger of Allah ﷺ said, "The blood of a Muslim who confesses that none has the right to be worshipped but Allah and that I am His Apostle, cannot be shed except in three cases: In Qisas for murder, a married person who commits illegal sexual intercourse and the one who reverts from Islam (apostate) and leaves the Muslims."

البخاري ٦٨٧٨: عن عبد الله —
قَالَ رَسُولُ اللَّهِ ﷺ: «لاَ يَحِلُّ دَمُ امْرِئٍ مُسْلِمٍ يَشْهَدُ أَنْ لاَ إِلَهَ إِلاَّ اللَّهُ وَأَنِّي رَسُولُ اللَّهِ إِلاَّ بِإِحْدَى ثَلاَثٍ: (١) النَّفْسُ بِالنَّفْسِ، (٢) وَالثَّيِّبُ الزَّانِي، (٣) وَالْمَارِقُ مِنَ الدِّينِ التَّارِكُ الْجَمَاعَةَ۔»


Agreed Upon (Luʿluʿ wa-al-Marjān)
Bukhārī > Diyāt (Blood Money) > § “Life for life, eye for eye, nose for nose, ear for ear,...
hadithunlocked.com