Fadala bin Ubayd reported,

The Messenger of Allah ﷺ said, "Every deceased person has their deeds sealed off, except the one who died stationed at the frontier in the cause of Allah. His deeds continue to grow for him until the Day of Resurrection, and he is kept safe from the trial of the grave."And I heard the Messenger of Allah ﷺ say, "The true Mujahid is the one who strives against his own soul."

Tirmidhi 1621

Sahih

حدثنا أحمد بن محمد أخبرنا عبد الله بن المبارك أخبرنا حيوة بن شريح قال أخبرني أبو هانئ الخولاني أن عمرو بن مالك الجنبي أخبره أنه

سمع فضالة بن عبيد يحدث

عن رسول الله ﷺ أنه قال كل ميت يختم على عمله إلا الذي مات مرابطا في سبيل الله فإنه ينمى له عمله إلى يوم القيامة ويأمن من فتنة القبر وسمعت رسول الله ﷺ يقول المجاهد من جاهد نفسه

الترمذي 1621صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Virtues of jihad
Chapter
Virtue of one who died while guarding the frontier
Numbering
Darussalam 1621
Tirmidhi 1621