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 three cases: a life for a life, the married person who commits adultery, and the one who abandons his religion and separates from the community."

Azami 6781

Sahih

عن ابن مسعود قال

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

الأعظمي 6781صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Retaliation and crimes
Chapter
Prohibition of protected blood
Section
Blood of a Muslim is not lawful except in three cases
Numbering
Jami al-Kamil 6781 (2nd edition)
Azami 6781