Abdullah bin Masud reported,

The Messenger of Allah ﷺ said, "The blood of a Muslim who testifies that there is no god but Allah and that I am the Messenger of Allah is not lawful to shed except in one of three cases, a life for a life, a married person who commits adultery, and one who abandons his religion and forsakes the community."

Bukhari 6878

Sahih

حدثنا عمر بن حفص حدثنا أبي حدثنا الأعمش عن عبد الله بن مرة عن مسروق

عن عبد الله قال

قال رسول الله ﷺ لا يحل دم امرئ مسلم يشهد أن لا إله إلا الله وأني رسول الله إلا بإحدى ثلاث النفس بالنفس والثيب الزاني والمارق من الدين التارك للجماعة

البخاري 6878صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Blood money
Chapter
Saying of Allah the Exalted, "That the soul is for the soul and the eye for the eye and the nose for the nose and the ear for the ear and the tooth for the tooth, and for wounds is legal retribution. But whoever gives it as charity, it is an expiation for him. And whoever does not judge by what Allah has revealed, then it is those who are the wrongdoers"
Numbering
Darussalam 6878
Bukhari 6878