Hadithcore
Sahih Muslim, 1886 a
sahih

It has been reported on the authority of 'Amr b. al-'As that the Messenger of Allah (ﷺ) said:

All the sins of a Shahid (martyr) are forgiven except debt.

حَدَّثَنَا زَكَرِيَّاءُ بْنُ يَحْيَى بْنِ صَالِحٍ الْمِصْرِيُّ، حَدَّثَنَا الْمُفَضَّلُ، - يَعْنِي ابْنَ فَضَالَةَ - عَنْ عَيَّاشٍ، - وَهُوَ ابْنُ عَبَّاسٍ الْقِتْبَانِيُّ - عَنْ عَبْدِ اللَّهِ بْنِ يَزِيدَ أَبِي عَبْدِ الرَّحْمَنِ الْحُبُلِيِّ، عَنْ عَبْدِ اللَّهِ بْنِ عَمْرِو بْنِ الْعَاصِ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ ‏

‏ يُغْفَرُ لِلشَّهِيدِ كُلُّ ذَنْبٍ إِلاَّ الدَّيْنَ ‏

‏ ‏.‏

References2 variants
In-Book Reference
Book 33, Hadith 179
USC-MSA web (English) reference
Book 20, Hadith 4649 (deprecated numbering scheme)