Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Allah smiles at two men, one of whom kills the other, yet both enter Paradise. One fights in the cause of Allah and is killed, then Allah accepts the repentance of his killer, who then fights and is martyred."

Azami 8082

Sahih

عن أبي هريرة

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

الأعظمي 8082صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Jihad
Chapter
Martyrs and the rulings on martyrdom
Section
Virtue of martyrdom in the cause of Allah the Exalted
Numbering
Jami al-Kamil 8082 (2nd edition)
Azami 8082