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 it is like the virtue of the one who goes out to fight over the one who stays behind.
Hadith Referenceمسند احمد / مسند الأنصار رضي الله عنهم / 23287
Hadith Gradingحکم دارالسلام:إسناده ضعيف جدا، أبو عبدالملك وأهي الحديث، ثم هو لم يسمع من حذيفة