Sahih al-Bukhari 2826
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
يَضْحَكُ اللَّهُ إِلَى رَجُلَيْنِ يَقْتُلُ أَحَدُهُمَا الآخَرَ يَدْخُلاَنِ الْجَنَّةَ، يُقَاتِلُ هَذَا فِي سَبِيلِ اللَّهِ فَيُقْتَلُ، ثُمَّ يَتُوبُ اللَّهُ عَلَى الْقَاتِلِ فَيُسْتَشْهَدُ "
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)."
Full reference and source
Sahih al-Bukhari 2826 In-book : Book 56, Hadith 42 USC-MSA web (English) : Vol. 4, Book 52, Hadith 80 (deprecated)
View source on Sunnah.com (opens in a new tab)