[Machine] The Banu Salamah were in a neighborhood of the city and they wanted to move closer to the mosque. So Allah revealed, "Indeed, it is We who bring the dead to life and record what they have put forth and what they left behind" (Quran 36:12). The Messenger of Allah ﷺ called them and said, "Indeed, it is written your deeds." Then he recited the verse to them and they (Banu Salamah) left.
كَانَ بَنُو سَلَمَةَ فِي نَاحِيَةٍ مِنَ الْمَدِينَةِ فَأَرَادُوا أَنْ يَنْتَقِلُوا إِلَى قُرْبِ الْمَسْجِدِ فَأَنْزَلَ اللَّهُ ﷻ {إِنَّا نَحْنُ نُحْيِي الْمَوْتَى وَنَكْتُبُ مَا قَدَّمُوا وَآثَارَهُمْ} [يس 12] فَدَعَاهُمْ رَسُولُ اللَّهِ ﷺ فَقَالَ «إِنَّهُ يَكْتُبُ آثَارَكُمْ» ثُمَّ قَرَأَ عَلَيْهِمُ الْآيَةَ فَتَرَكُوا