It is narrated from Sayyiduna Salman al-Khayr (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Standing guard for a day and a night is better than fasting a month and standing it in prayer. Whoever dies while standing guard in the path of Allah, that same reward will continue to accrue to him, his provision will continue to be provided, and he will be kept safe from the trial."
Hadith Referenceالمعجم الكبير للطبراني / باب السين / 6152