Abu Hurairah reported,

A man came to the Prophet ﷺ while he was delivering a sermon from the pulpit and asked, "Tell me, if I fight in the cause of Allah with patience, seeking reward, advancing and not retreating, will Allah forgive my sins?"He replied, "Yes."Then he fell silent for a moment and said, "Where is the one who asked just now?"The man said, "Here I am."The Prophet ﷺ asked, "What did you say?"The man repeated, "Tell me, if I am killed in the cause of Allah with patience, seeking reward, advancing and not retreating, will Allah forgive my sins?"He replied, "Yes, except for debt. Jibreel just whispered that to me."

Nasai 3157

Sahih

أخبرنا محمد بن بشار قال حدثنا أبو عاصم قال حدثنا محمد بن عجلان عن سعيد المقبري

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

جاء رجل إلى النبي ﷺ وهو يخطب على المنبر فقال أرأيت إن قاتلت في سبيل الله صابرا محتسبا مقبلا غير مدبر أيكفر الله عني سيئاتي قال نعم ثم سكت ساعة قال أين السائل آنفا فقال الرجل ها أنا ذا قال ما قلت قال أرأيت إن قتلت في سبيل الله صابرا محتسبا مقبلا غير مدبر أيكفر الله عني سيئاتي قال نعم إلا الدين سارني به جبريل آنفا

النسائي 3157صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Jihad
Chapter
One who fought in the cause of Allah while owing a debt
Numbering
Darussalam 3157
Nasai 3157