It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Guarding (the frontiers) for one day in the path of Allah is better than one of you staying among his family for a thousand years worshipping in such a way that its days are spent fasting and its nights in prayer; a year is three hundred and sixty days, (and in reward and merit) a day is equal to a thousand years."
Hadith Referenceمسند أبي يعلى الموصلي / مسند أنس بن مالك / 3974
Hadith Takhrij«قال سعيد بن محمد السناري: باطل» «أخرجه سنن ابن ماجه برقم: 2770، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 9497، مسند ابویعلیٰ ترقیم الاثری: 3961»