Abdullah bin Masud reported,

The Prophet ﷺ said, "A man will come holding the hand of another man and say, 'My Lord, this man killed me.' Allah will ask him, 'Why did you kill him?' He will reply, 'I killed him so that the glory would belong to You.' Allah will say, 'Indeed, it does belong to Me.'And another man will come holding the hand of another and say, 'This man killed me.' Allah will ask him, 'Why did you kill him?' He will reply, 'So that the glory would belong to so-and-so.' Allah will say, 'It does not belong to so-and-so,' and he will bear the burden of his sin."

Nasai 4002

Sahih

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

عن عبد الله بن مسعود

عن النبي ﷺ قال يجيء الرجل آخذا بيد الرجل فيقول يا رب هذا قتلني فيقول الله له لم قتلته فيقول قتلته لتكون العزة لك فيقول فإنها لي ويجيء الرجل آخذا بيد الرجل فيقول إن هذا قتلني فيقول الله له لم قتلته فيقول لتكون العزة لفلان فيقول إنها ليست لفلان فيبوء بإثمه

النسائي 4002صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Prohibition of bloodshed
Chapter
Sanctity of blood
Numbering
Darussalam 4002
Nasai 4002