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