´Narrated Abu Sa'eed Al-Khudri:` "Banu Salamah's dwellings were on the outskirts of Al-Madinah, so they wanted to relocate closer to the Masjid. Then this Ayah was revealed: 'Verily, We give life to the dead, and We record that which they send before (them), and their traces... (36:12)' So the Messenger of Allah (ﷺ) said: 'Your steps are recorded, so do not relocate.'"
Hadith Referenceسنن ترمذي / كتاب تفسير القرآن عن رسول الله صلى الله عليه وسلم / 3226
Hadith Gradingالألبانی:صحيح، ابن ماجة (785) | زبیر علی زئی:(3226) إسناده ضعيف, أبوسفيان طريف بن شھاب : ضعيف (تقدم:238) وللحديث شواھد عند ابن ماجه (785) والبزار وابن أبى حاتم وغيرھم دون قوله: ”تنزلت ھذه الاية .“
Explanation: 1: We give life to the dead, and that which they send ahead We record, and (the traces of footsteps of those who come and go to the mosque) We also record (by counting them) (: Ya-Sin: 12).
Source: Sunan al-Tirmidhi – Majlis ‘Ilmi Dar al-Da‘wah, New Delhi Edition, Page: 3226