I heard the Messenger of Allah ﷺ say, "Whoever stands guard at the frontier in the path of Allah for a day and a night, it is reckoned for him as the fasting of a month and its night-prayers. If he dies, the deeds he was performing continue to be credited to him, he is granted safety from the trial of the grave, and his provision continues to flow to him."
أخبرنا عمرو بن منصور قال حدثنا عبد الله بن يوسف قال حدثنا الليث قال حدثني أيوب بن موسى عن مكحول عن شرحبيل بن السمط
سمعت رسول الله ﷺ يقول من رابط في سبيل الله يوما وليلة كانت له كصيام شهر وقيامه فإن مات جرى عليه عمله الذي كان يعمل وأمن الفتان وأجري عليه رزقه