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 may not lawfully be shed except for one of three things, adultery committed by someone who has been married, a life taken for a life, and abandoning one's religion and separating from the community."

Muslim 4376

Sahih

حدثنا ابن نمير حدثنا أبي ح و حدثنا ابن أبي عمر حدثنا سفيان ح و حدثنا إسحق بن إبراهيم وعلي بن خشرم قالا أخبرنا عيسى بن يونس كلهم عن الأعمش بهذا الإسناد مثله

مسلم 4376صحيح
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 4376
Muslim 4376