Abu Hurairah reported,

The Prophet ﷺ said, "Whoever dies while stationed at the frontier in the cause of Allah will continue to receive the reward of the righteous deeds he used to perform, his sustenance will continue to be granted to him, he will be safe from the trial of the grave, and Allah will raise him on the Day of Resurrection secure from the great terror."

Azami 3883

Hasan

عن أبي هريرة

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

الأعظمي 3883حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Conditions of the deceased in the grave
Section
Ribat in the cause of Allah is a protection from the punishment of the grave
Numbering
Jami al-Kamil 3883 (2nd edition)
Azami 3883