(15) باب الأَبْعَدُ فَالأَبْعَدُ مِنَ الْمَسْجِدِ أَعْظَمُ أَجْرًا
It was narrated that Ibn 'Abbas said:
"The houses of the Ansar were far from the mosque and they wanted to move closer. Then the following Verse was revealed: 'We record that which they send before (them), and their traces.'" [Ya-Sin: 12] He said: So they remained (where they were)."
Reference: Sunan Ibn Majah 785
In-book reference: Book 4, Hadith 51
English translation: Vol. 1, Book 4, Hadith 785