Salman reported,

He said, I heard the Messenger of Allah ﷺ say, "Standing guard at the frontier for a day and a night is better than fasting a month and praying through its nights. If a man dies while doing so, the deeds he used to perform continue to be credited to him, his provision continues to flow, and he is kept safe from the trial of the grave."

Azami 7764

Sahih

عن سلمان

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

الأعظمي 7764صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Jihad
Chapter
Virtues of jihad
Section
Virtue of ribat in the cause of Allah عز وجل
Numbering
Jami al-Kamil 7764 (2nd edition)
Azami 7764