Ayesha reported,

Two writings were found in the hilt of the Messenger of Allah's ﷺ sword. Among the most insolent of people are a man who strikes one who did not strike him, a man who kills one who did not kill him, and a man who gives his loyalty to other than the people who showed him favor. Whoever does any of this has disbelieved in Allah and His Messenger, and neither obligatory worship nor voluntary worship will be accepted from him.

Azami 6836

Hasan

عن عائشة قالت

وجد في قائم سيف رسول الله ﷺ كتابان: إن من أشد الناس عتوا رجل ضرب غير ضاربه، ورجل قتل غير قاتله، ورجل تولى غير أهل نعمته فمن فعل ذلك فقد كفر بالله ورسوله، لا يقبل منه صرف ولا عدل.

الأعظمي 6836حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Retaliation and crimes
Chapter
Prohibition of protected blood
Section
One who kills other than his killer
Numbering
Jami al-Kamil 6836 (2nd edition)
Azami 6836