It wasnarrated that Ibn 'Umar said:
"The Messenger of Allah (ﷺ)tookhold of some part of my body and said: 'O 'Abdullah, be in thisworld like a stranger, or one who is passing through, and consideryourself as one of the people of the graves.'" (JA)
English reference (JA): Vol. 5, Book 37, Hadith 4114 (JA)
Arabic reference (JA): Book 37, Hadith 4253 (JA)