Salman Farsi reported,

The Messenger of Allah ﷺ said, "Standing guard at the frontier for a day and a night is better than fasting and praying through an entire month. If a man dies while engaged in it, the deeds he used to perform continue to be credited to him, his provision continues to flow to him, and he is kept safe from the trial of the grave."

Azami 12119

Sahih

عن سلمان الفارسي

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

الأعظمي 12119صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Virtues of Surah Baqarah
Section
His saying, "O you who believe, be patient and endure and remain stationed and fear Allah that you may be successful"
Numbering
Jami al-Kamil 12119 (2nd edition)
Azami 12119