Ali bin Abu Talib reported,

Did the Messenger of Allah ﷺ entrust to you anything which he did not entrust to people in general?Ali replied, "No, except for what is in this document of mine."Musaddad's version says, "He then brought out a document," while Ahmad's version says, "a document from the sheath of his sword." In it was written, "The believers are equal in their blood. They stand united against all others. The lowest of them may grant protection on behalf of them all. No believer shall be killed in retaliation for an unbeliever, nor shall one bound by a covenant be killed during his covenant. Whoever commits an offense bears it himself, and whoever commits an offense or shelters an offender, upon him is the curse of Allah, the angels, and all people."Musaddad, narrating from Ibn Abu Aruba, said, "He brought out a document."

Abu Dawud 4530

Sahih

حدثنا أحمد بن حنبل ومسدد قالا حدثنا يحيى بن سعيد أخبرنا سعيد بن أبي عروبة عن قتادة عن الحسن عن قيس بن عباد قال انطلقت أنا والأشتر إلى

علي عليه السلام فقلنا

هل عهد إليك رسول الله ﷺ شيئا لم يعهده إلى الناس عامة قال لا إلا ما في كتابي هذا قال مسدد قال فأخرج كتابا وقال أحمد كتابا من قراب سيفه فإذا فيه المؤمنون تكافأ دماؤهم وهم يد على من سواهم ويسعى بذمتهم أدناهم ألا لا يقتل مؤمن بكافر ولا ذو عهد في عهده من أحدث حدثا فعلى نفسه ومن أحدث حدثا أو آوى محدثا فعليه لعنة الله والملائكة والناس أجمعين قال مسدد عن ابن أبي عروبة فأخرج كتابا

أبو داود 4530صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Blood money
Chapter
A Muslim is not executed in retaliation for killing a disbeliever
Numbering
Darussalam 4530
Abu Dawud 4530