It is narrated from Uthman (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "It is not permissible to kill a Muslim except for one of three reasons: becoming a disbeliever after having faith (apostasy), committing adultery while being married, or killing someone unjustly."
Hadith Referenceمسند الإمام الشافعي / كتاب القتل والقصاص والديات والقسامة / 1605
Hadith Takhrijصحيح من غير هذا الطريق اخرجه ابوداود ،الديات، باب الامام يأمر بالعفو في الدم (4502) والترمذي ، الفتن، باب ماجاء لا يحل دم امرئ مسلم الا بإحدى ثلاث (2158) - وقال حسن ـ والنسائي (4024) وابن ماجة (2533) وصححه ابن الجارود (836) - والحاكم: (350/4)۔
It is narrated from Uthman bin Affan (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "The blood of a Muslim man is lawful in only one of three cases: apostasy after faith, adultery after marriage, or unjustly killing a soul."
Hadith Referenceمسند الإمام الشافعي / كتاب القتل والقصاص والديات والقسامة / 1606
It is narrated from Zaid bin Aslam (may Allah have mercy on him) that the Messenger of Allah (ﷺ) said: "Whoever changes his religion (Islam), kill him."
Hadith Referenceمسند الإمام الشافعي / كتاب القتل والقصاص والديات والقسامة / 1607
Hadith Takhrijصحيح من غير هذا الطريق من حديث ابن عباس اخرجه البخارى الجهاد والسير، باب لا يعذب بعذاب الله (3017)، (6922)۔