Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) narrates: At this place, the Prophet Muhammad (peace and blessings be upon him) stood and said: By Him besides whom there is no deity, whoever testifies that there is no deity except Allah and that I am the Messenger of Allah, it is not permissible to shed the blood of such a person except in one of three cases: a person who abandons Islam and separates from the (Muslim) community, a married adulterer, and a life for a life.
Hadith Referenceصحیح ابن حبان / كتاب الجنايات / 5976
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - مضى (4390). تنبيه!! رقم (4390) = (4407) من «طبعة المؤسسة». - مدخل بيانات الشاملة -.فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح على شرط الشيخين