Abu Hurairah reported,

The Messenger of Allah ﷺ stood addressing the people and mentioned that faith in Allah and striving in the path of Allah are among the best deeds in Allah's sight.A man stood up and asked, "Messenger of Allah, tell me, if I am killed in the path of Allah while patient, seeking reward, advancing and not retreating, will Allah wipe away my sins?"He replied, "Yes."The man said, "What did you say?"The Prophet ﷺ repeated his answer just as he had said it, "Yes."The man asked again, "What did you say?"The Prophet ﷺ repeated the answer once more.The man said, "Messenger of Allah, tell me, if I am killed in the path of Allah, patient, seeking reward, advancing and not retreating, will Allah wipe away my sins?"He replied, "Yes, except for debt, for Jibreel عليه السلام whispered that to me."

Ahmad 8075

Sahih

حدثنا محمد بن بكر حدثنا عبد الحميد بن جعفر الأنصاري أخبرني عياض بن عبد الله بن أبي سرح

عن أبي هريرة قال

قام رسول الله ﷺ يخطب الناس فذكر الإيمان بالله والجهاد في سبيل الله من أفضل الأعمال عند الله قال فقام رجل فقال يا رسول الله أرأيت إن قتلت في سبيل الله وأنا صابر محتسب مقبلا غير مدبر كفر الله عني خطاياي قال نعم قال فكيف قلت قال فرد عليه القول كما قال قال نعم قال فكيف قلت قال فرد عليه القول أيضا قال يا رسول الله أرأيت إن قتلت في سبيل الله صابرا محتسبا مقبلا غير مدبر كفر الله عني خطاياي قال نعم إلا الدين فإن جبريل عليه السلام سارني بذلك

أحمد 8075صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abu Hurairah
Numbering
Darussalam 8075
Ahmad 8075