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 turns in mercy to the killer, who later embraces Islam and is martyred."

Bukhari 2826

Sahih

حدثنا عبد الله بن يوسف أخبرنا مالك عن أبي الزناد عن الأعرج

عن أبي هريرة رضي الله عنه

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

البخاري 2826صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Jihad and expeditions
Chapter
Disbeliever who kills a Muslim then accepts Islam, then is guided and is killed
Numbering
Darussalam 2826
Bukhari 2826