It is narrated from Hazrat Hudhaifah (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) said: The virtue of the house that is near the mosque over the house that is far from the mosque is like the virtue of the one who goes out for jihad over the one who stays behind.
Hadith Referenceمسند احمد / مسند الأنصار رضي الله عنهم / 23385
Hadith Gradingحکم دارالسلام:إسناده ضعيف جدا من أجل على بن يزيد