Messenger of Allah ﷺ 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)." (Using translation from Bukhārī 2826)
أَنَّ رَسُولَ اللهِ ﷺ قَالَ «يَضْحَكُ اللهُ إِلَى رَجُلَيْنِ يَقْتُلُ أَحَدُهُمَا الْآخَرَ كِلَاهُمَا يَدْخُلُ الْجَنَّةَ يُقَاتِلُ هَذَا فِي سَبِيلِ اللهِ فَيُقْتَلُ ثُمَّ يَتُوبُ اللهُ عَلَى الْقَاتِلِ فَيُقَاتِلُ فَيُسْتَشْهَدُ»