Abdullah bin ‘Amr bin Al-‘As (May Allah be pleased with them) reported:
The Messenger of Allah () said, “Allah forgives every sin of a martyr, except his debt.”
[Muslim].
Another narration in Muslim is: The Messenger of Allah () said, “Being martyred in the Cause of Allah expiates for everything, except debt.”
……………………………………………………………
This is authentic.