"A man came to the Messenger of Allah ﷺ and said: 'O Messenger of Allah, if I am killed in the cause of Allah with patience and seeking reward, facing the enemy and not running away, do you think that Allah will forgive my sins?' The Messenger of Allah ﷺ said: 'Yes.' When the man turned away, the Messenger of Allah ﷺ called him back and said: 'What did you say?' He repeated his question, and the Messenger of Allah ﷺ said: 'Yes, except debt. Jibril told me.'" (Using translation from Nasāʾī 3156)
جَاءَ رَجُلٌ إِلَى رَسُولِ اللهِ ﷺ فَقَالَ يَا رَسُولَ اللهِ إِنْ قُتِلْتُ فِي سَبِيلِ اللهِ صَابِرًا مُحْتَسِبًا مُقْبِلًا غَيْرَ مُدْبِرٍ يُكَفِّرُ اللهُ عَنِّي خَطَايَايَ؟ قَالَ رَسُولُ اللهِ ﷺ «نَعَمْ» فَلَمَّا وَلَّى الرَّجُلُ نَادَاهُ رَسُولُ اللهِ ﷺ أَوْ أَمَرَ بِهِ فَنُودِيَ لَهُ فَقَالَ رَسُولُ اللهِ ﷺ «كَيْفَ قُلْتَ؟» فَأَعَادَ عَلَيْهِ قَوْلَهُ فَقَالَ لَهُ رَسُولُ اللهِ ﷺ «نَعَمْ إِلَّا الدَّيْنَ كَذَلِكَ قَالَ لِي جِبْرِيلُ»