Abu Bakra reported,

He said, I heard the Messenger of Allah ﷺ say, "When two Muslims confront each other with their swords and one kills the other, both the killer and the slain are in the Fire."They asked, "Messenger of Allah, this is the killer, but what about the one who was killed?"He replied, "He too was intent on killing his companion."

Nasai 4127

Sahih

أخبرنا أحمد بن فضالة قال حدثنا عبد الرزاق قال أنبأنا معمر عن أيوب عن الحسن عن الأحنف بن قيس

عن أبي بكرة قال

قال سمعت رسول الله ﷺ يقول إذا تواجه المسلمان بسيفيهما فقتل أحدهما صاحبه فالقاتل والمقتول في النار قالوا يا رسول الله هذا القاتل فما بال المقتول قال إنه أراد قتل صاحبه

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