Muwatta Imam Malik Book of Jihad, Hadith 31
Yahya related to me from Malik from Yahya ibn Said from Said al- Maqburi from Abdullah ibn Abi Qatada that his father had said that a man came to the Messenger of Allah ﷺ and said, "O Messenger of Allah! If I am killed in the way of Allah, expectant for reward, sincere, advancing, and not retreating, will Allah pardon my faults?" The Messenger of Allah ﷺ said, "Yes." When the man turned away, the Messenger of Allah ﷺ called him - or commanded him and he was called to him. The Messenger of Allah ﷺ said to him, "What did you say?" He repeated his words to him, and the Prophet ﷺ said to him, "Yes, except for the debt. Jibril said that to me."
وَحَدَّثَنِي عَنْ مَالِكٍ، عَنْ يَحْيَى بْنِ سَعِيدٍ، عَنْ سَعِيدِ بْنِ أَبِي سَعِيدٍ الْمَقْبُرِيِّ، عَنْ عَبْدِ اللَّهِ بْنِ أَبِي قَتَادَةَ، عَنْ أَبِيهِ، أَنَّهُ قَالَ جَاءَ رَجُلٌ إِلَى رَسُولِ اللَّهِ ﷺ فَقَالَ يَا رَسُولَ اللَّهِ إِنْ قُتِلْتُ فِي سَبِيلِ اللَّهِ صَابِرًا مُحْتَسِبًا مُقْبِلاً غَيْرَ مُدْبِرٍ أَيُكَفِّرُ اللَّهُ عَنِّي خَطَايَاىَ فَقَالَ رَسُولُ اللَّهِ ﷺ " نَعَمْ " . فَلَمَّا أَدْبَرَ الرَّجُلُ نَادَاهُ رَسُولُ اللَّهِ ﷺ أَوْ أَمَرَ بِهِ فَنُودِيَ لَهُ فَقَالَ لَهُ رَسُولُ اللَّهِ ﷺ " كَيْفَ قُلْتَ " . فَأَعَادَ عَلَيْهِ قَوْلَهُ فَقَالَ لَهُ النَّبِيُّ ﷺ " نَعَمْ إِلاَّ الدَّيْنَ كَذَلِكَ قَالَ لِي جِبْرِيلُ " .