Sahih Muslim, Book 33, Hadith 179 (Muslim 4839)

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.