An-Nawawi's 40 Hadith, Book 1, Hadith 40 (Nawawi 40 40)

On the authority of Abdullah ibn Umar (may Allah be pleased with him), who said:

The Messenger of Allah (peace and blessings of Allah be upon him) took me by the shoulder and said, “Be in this world as though you were a stranger or a wayfarer.” And Ibn Umar (may Allah be pleased with him) used to say, “In the evening do not expect your life before your death.”