Ali bin Abu Talib reported,

Someone asked Ali, "Did the Prophet of Allah ﷺ entrust to you anything that he did not entrust to people in general?"Ali replied, "No, except for what is in this document of mine."He then took out a document from the sheath of his sword, and in it was written, "The believers are equal in their blood. They stand united against all others, and the protection granted by the least of them is binding on them all. No believer is to be killed in retaliation for a disbeliever, nor is anyone under a covenant to be killed while his covenant stands. Whoever commits a crime bears its consequences himself, and whoever shelters a criminal, upon him is the curse of Allah, the angels, and all people."

Nasai 4738

Sahih

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

علي رضي الله عنه فقلنا

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

النسائي 4738صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Sworn testimony
Chapter
Retaliation between freemen and slaves regarding life
Numbering
Darussalam 4738
Nasai 4738