It was narrated that Abu Hurairah said:
"The Messenger of Allah said: 'The greater the distance from the mosque, the greater the reward.'"