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.'" (TR)
English reference (TR): Vol. 5, Book 37, Hadith 4114 (TR)
Arabic reference (TR): Book 37, Hadith 4253 (TR)