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."
حدثنا وكيع حدثنا الأعمش عن عبد الله بن مرة عن مسروق
قال رسول الله ﷺ لا يحل دم امرئ مسلم يشهد أن لا إله إلا الله وأني رسول الله إلا أحد ثلاثة نفر النفس بالنفس والثيب الزاني والتارك لدينه المفارق للجماعة