Abu Saeed Khudri reported,

The tribe of Banu Salama lived on the outskirts of Madinah, and they wanted to move closer to the mosque. Then this verse was revealed, "Indeed, it is We who bring the dead to life and record what they have put forth and what they left behind" [Ya-Sin 36:12].So the Messenger of Allah ﷺ said, "Your footsteps are being recorded, so do not move."

Azami 13144

Hasan

عن أبي سعيد الخدري قال

كانت بنو سلمة في ناحية المدينة، فأرادوا النقلة إلى قرب المسجد، فنزلت هذه الآية: {إنا نحن نحيي الموتى ونكتب ما قدموا وآثارهم} فقال رسول الله ﷺ: إن آثاركم تكتب فلا تنتقلوا.

الأعظمي 13144حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Tafsir of Surah Yasin
Section
His saying, "Indeed, We give life to the dead, and We record what they have put forth and their traces, and all things We have enumerated in a clear register." His saying, "and We record what they have put forth and their traces" means We record their deeds which they performed themselves during their lives, and likewise We record the traces of their deeds during their lives and after their deaths, whether these deeds and traces are from the realm of good or from the realm of evil, all of it is recorded and written for them or against them
Numbering
Jami al-Kamil 13144 (2nd edition)
Azami 13144