Abdullah bin Abbas reported,

The houses of the Ansar were far from the mosque, so they wanted to move closer. Then the verse was revealed, "And We record what they have sent ahead and their footprints" [Ya-Sin 36:12]. He said, So they remained where they were.

Ibn Majah 785

Hasan

حدثنا علي بن محمد حدثنا وكيع حدثنا إسرائيل عن سماك عن عكرمة

عن ابن عباس قال

كانت الأنصار بعيدة منازلهم من المسجد فأرادوا أن يقتربوا فنزلت {ونكتب ما قدموا وآثارهم} قال فثبتوا

ابن ماجه 785حسن
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Mosques and congregations
Chapter
Walking to prayer
Numbering
Darussalam 785
Ibn Majah 785