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

Ahmad 4245

Sahih

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

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

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

أحمد 4245صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abdullah bin Masud
Numbering
Darussalam 4245
Ahmad 4245