Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Allah smiles upon 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 later fights and is martyred."In another wording, "Our Lord smiled at two men, one of whom killed the other, yet both are in Paradise."

Azami 371

Sahih

عن أبي هريرة

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

الأعظمي 371صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Faith in Allah عز وجل
Section
Laughter
Numbering
Jami al-Kamil 371 (2nd edition)
Azami 371