(32) باب مَنْ قُتِلَ فِي سَبِيلِ اللَّهِ كُفِّرَتْ خَطَايَاهُ إِلاَّ الدَّيْنَ
The tradition has been narrated through a different chain of transmitters on the authority of Abu Qatada who said:
A man came to the Messenger of Allah (ﷺ) while he was on the pulpit and said: Do you think if I am killed in the way of Allah... (except this difference in its beginning, the rest of the tradition is the same as the previous one).
Reference: Sahih Muslim 1885 b
In-book reference: Book 33, Hadith 177
USC-MSA web (English) reference(deprecated numbering scheme): Book 20, Hadith 4647