Abdullah bin Masud reported,

The Messenger of Allah ﷺ stood among us and said, "By the One besides whom there is no god, the blood of a Muslim man who testifies that there is no god but Allah and that I am the Messenger of Allah is not lawful except in three cases. The one who abandons Islam and separates from the community," or "the community." Ahmad was uncertain which. "The married person who commits adultery, and a life for a life."Amash said, I related this to Ibrahim, and he narrated to me from Aswad, from Ayesha, the like of it.

Muslim 4377

Sahih

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

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

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

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