Sahih Muslim, Book 54, Hadith 67 (Muslim 7213)

Abu Huraira reported Allah's Messenger (ﷺ) as saying:

The Last Hour would not come until a person would pass by a grave of another person and he would say: I wish it had been my abode.