Translation
(56) Fighting for the Cause of Allah (Jihaad)
كتاب الجهاد والسير
(28) Chapter: A disbeliever kills a Muslim and later on embraces Islam
(28) باب الْكَافِرِ يَقْتُلُ الْمُسْلِمَ ثُمَّ يُسْلِمُ فَيُسَدِّدُ بَعْدُ وَيُقْتَلُ
Sahih al-Bukhari 2826 

Narrated Abu Huraira:

Allah's Messenger (ﷺ) said, "Allah welcomes two men with a smile; one of whom kills the other and both of them enter Paradise. One fights in Allah's Cause and gets killed. Later on Allah forgives the 'killer who also get martyred (In Allah's Cause)."

حَدَّثَنَا عَبْدُ اللَّهِ بْنُ يُوسُفَ، أَخْبَرَنَا مَالِكٌ، عَنْ أَبِي الزِّنَادِ، عَنِ الأَعْرَجِ، عَنْ أَبِي هُرَيْرَةَ، رضى الله عنه أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏ "‏ يَضْحَكُ اللَّهُ إِلَى رَجُلَيْنِ يَقْتُلُ أَحَدُهُمَا الآخَرَ يَدْخُلاَنِ الْجَنَّةَ، يُقَاتِلُ هَذَا فِي سَبِيلِ اللَّهِ فَيُقْتَلُ، ثُمَّ يَتُوبُ اللَّهُ عَلَى الْقَاتِلِ فَيُسْتَشْهَدُ ‏"‏‏.‏
Reference : Sahih al-Bukhari 2826
In-book reference : Book 56, Hadith 42
USC-MSA web (English) reference : Vol. 4, Book 52, Hadith 80
  (deprecated numbering scheme)