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)۔