Ali bin Abu Talib reported,

Someone asked Ali, "Do you have anything from the Messenger of Allah ﷺ besides the Quran?"He replied, "No, by the One who splits the seed and creates the soul, except that Allah عز وجل grants a servant understanding of His Book, or what is in this document."I asked, "And what is in the document?"He said, "It contains rulings on blood-money, the ransoming of captives, and that a Muslim is not to be killed in retaliation for a disbeliever."

Nasai 4748

Sahih

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

عليا فقلنا

هل عندكم من رسول الله ﷺ شيء سوى القرآن فقال لا والذي فلق الحبة وبرأ النسمة إلا أن يعطي الله عز وجل عبدا فهما في كتابه أو ما في هذه الصحيفة قلت وما في الصحيفة قال فيها العقل وفكاك الأسير وأن لا يقتل مسلم بكافر

النسائي 4748صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Sworn testimony
Chapter
Dropping of retaliation from a Muslim for a disbeliever
Numbering
Darussalam 4748
Nasai 4748