Ayesha reported,

The Messenger of Allah ﷺ said, "The blood of a Muslim who testifies that there is no god but Allah and that Muhammad is the Messenger of Allah is not lawful to shed except in one of three cases. A man who commits adultery after marriage, in which case he is stoned. A man who goes out to wage war against Allah and His Messenger, in which case he is killed, crucified, or banished from the land. Or a man who kills another person, in which case he is killed in retaliation."

Abu Dawud 4353

Sahih

حدثنا محمد بن سنان الباهلي حدثنا إبراهيم بن طهمان عن عبد العزيز بن رفيع عن عبيد بن عمير

عن عائشة رضي الله عنها قالت

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

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