Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Allah smiles at two men, one of whom kills the other, yet both enter Paradise."They asked, "How can that be, Messenger of Allah?"He replied, "This one kills the other, so the slain man enters Paradise. Then Allah accepts the repentance of the killer and guides him to Islam, and he goes out to struggle in the way of Allah and is martyred."

Ahmad 8224

Sahih

وقال رسول الله ﷺ يضحك الله لرجلين يقتل أحدهما الآخر كلاهما يدخل الجنة قالوا كيف يا رسول الله قال يقتل هذا فيلج الجنة ثم يتوب الله على الآخر فيهديه إلى الإسلام ثم يجاهد في سبيل الله فيستشهد

أحمد 8224صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abu Hurairah
Numbering
Darussalam 8224
Ahmad 8224