Sunan Abi Dawud, Book 2, Hadith 166 (Abu Dawud 556)

Narrated AbuHurayrah:

The Prophet (ﷺ) said: The further one is from the mosque , the greater will be one's reward.