Abdullah bin Masud reported,

The Messenger of Allah ﷺ said, "The blood of a Muslim man who bears witness that there is no god but Allah and that I am the Messenger of Allah is not lawful to shed except in one of three cases, the married person who commits adultery, a life for a life, and the one who abandons his religion and separates from the community."

Abu Dawud 4352

Sahih

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

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

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

أبو داود 4352صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Legal punishments
Chapter
Ruling on one who apostatized
Numbering
Darussalam 4352
Abu Dawud 4352