It is narrated from Sayyiduna Mu'adh bin Anas that the Prophet (peace and blessings be upon him) said: Whoever stands guard over the Muslims (protects the borders) for the sake of Allah's pleasure and has nothing to do with the king, he will be protected from seeing the fire of Hell with his own eyes, except if an oath must be fulfilled, because Allah the Exalted has said: "Every one of you will pass over Hell."
Hadith Referenceمسند احمد / مسند المكيين / 15612
Hadith Gradingحکم دارالسلام:إسناده ضعيف مسلسل بالضعفاء