Abdullah bin Masud reported,

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

Muslim 4375

Sahih

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

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

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

مسلم 4375صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Qasama, combatants, legal retaliation, and blood money
Chapter
What makes the blood of a Muslim lawful
Numbering
Darussalam 4375
Muslim 4375