It is narrated from Hazrat Abu Huraira (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: The farther a person comes from the mosque, the greater is his reward.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 8618
Hadith Gradingحکم دارالسلام:حسن لغیرہ ، وھذا إسناد ضعیف ، عبد الرحمن بن مھران مجھول