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."
أخبرنا إبراهيم بن المستمر قال حدثنا عمرو بن عاصم قال حدثنا معتمر عن أبيه عن الأعمش عن شقيق بن سلمة عن عمرو بن شرحبيل
عن النبي ﷺ قال يجيء الرجل آخذا بيد الرجل فيقول يا رب هذا قتلني فيقول الله له لم قتلته فيقول قتلته لتكون العزة لك فيقول فإنها لي ويجيء الرجل آخذا بيد الرجل فيقول إن هذا قتلني فيقول الله له لم قتلته فيقول لتكون العزة لفلان فيقول إنها ليست لفلان فيبوء بإثمه
[Sahih] Abu Naeem narrated it in Hilyat Awliya 4/147, from the hadith of Ibrahim bin Mustamir, through this same chain, and it is also in Al-Kubra, hadith no. 3460. This hadith has corroborating narrations.Mutamir is the son of Sulayman Taymi.