Ayesha reported,

The Messenger of Allah ﷺ 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 to shed except in three cases. The one who abandons Islam and separates from the community, the married person who commits adultery, and a life for a life."

Azami 7029

Sahih

عن عائشة قالت

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

الأعظمي 7029صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Apostate, those who wage war, and whoever insults the Messenger
Section
Ruling on the male apostate and female apostate and seeking their repentance
Numbering
Jami al-Kamil 7029 (2nd edition)
Azami 7029