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."

Ibn Majah 2534

Sahih

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

ابن مسعود قال

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

ابن ماجه 2534صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Legal punishments
Chapter
Blood of a Muslim is not lawful except in three cases
Numbering
Darussalam 2534
Ibn Majah 2534