It is narrated from Sayyiduna Fadalah bin Ubayd (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "The deeds of every deceased person are sealed, except the one who guards the frontier in the path of Allah, for his deeds continue to grow for him on the Day of Resurrection, and he is granted safety from the testers (the angels) of the grave."
Hadith Referenceالمعجم الكبير للطبراني / باب الفاء / 15894