Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Whoever dies while stationed on guard in the path of Allah will continue to receive the reward of the righteous deeds he used to perform, his sustenance will continue to flow to him, he will be safe from the trials of the grave, and Allah will raise him on the Day of Resurrection secure from terror."

Ibn Majah 2767

Sahih

حدثنا يونس بن عبد الأعلى حدثنا عبد الله بن وهب أخبرني الليث عن زهرة بن معبد عن أبيه

عن أبي هريرة

عن رسول الله ﷺ قال من مات مرابطا في سبيل الله أجرى عليه أجر عمله الصالح الذي كان يعمل وأجرى عليه رزقه وأمن من الفتان وبعثه الله يوم القيامة آمنا من الفزع

ابن ماجه 2767صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Jihad
Chapter
Virtue of guarding the frontier in the cause of Allah
Numbering
Darussalam 2767
Ibn Majah 2767