عَنِ ابْنِ عُمَرَ رَضِيَ اللَّهُ عَنْهُمَا قَالَ أَخَذَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ بِبَعْضِ جَسَدِي فَقَالَ يَا عَبْدَ اللَّهِ كُنْ فِي الدُّنْيَا كَأَنَّكَ غَرِيبٌ أَوْ عَابِرُ سَبِيلٍ وَاعْدُدْ نَفْسَكَ فِي الْمَوْتَى
It is narrated from Sayyiduna Abdullah bin Umar (may Allah be pleased with them both), he says: The Messenger of Allah (peace and blessings be upon him and his family) held a part of my body and said: O Abdullah! Be in this world as if you are a stranger or a traveler, and count yourself among the dead.