Sayyidina Abu Sa’eed Khudri (RA) reported that the Banu Salamah lived in the suburds of Madinah but cherished to move over nearer to the mosque. So, this verse was revealed:
"Verily We shall give life to the dead and We record that which they send before and that which they leave behind." (36: 12)
Thus, Allah’s Messenger (SAW) said to them, “What you have behind is recorded, so do not move.’
[Bukhari 656,Ibn e Majah 784, Ahmed 12033, Muslim 665]