Full Sharh — Mishkat al-Masabih 1522
وَعَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ قَالَ: أَخَذَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ بِمَنْكِبِي فَقَالَ: «كُنْ فِي الدُّنْيَا كَأَنَّكَ غَرِيبٌ أَوْ عَابِرُ سَبِيلٍ» . وَكَانَ ابْنُ عُمَرَ يَقُولُ: إِذَا أَمْسَيْتَ فَلَا تَنْتَظِرِ الصَّبَاحَ وَإِذَا أَصْبَحْتَ فَلَا تَنْتَظِرِ الْمَسَاءَ وَخُذْ مِنْ صِحَّتِكَ لِمَرَضِكَ وَمِنْ حياتك لموتك. رَوَاهُ البُخَارِيّ
English Translation
‘Abdallah b. ‘Umar told of God’s messenger taking him by the shoulders and saying, ‘‘Be in the world as though you were a stranger or one who is passing through.” Ibn ‘Umar used to say, “In the evening do not expect to see the morning and in the morning do not expect to see the evening, but take something when in health to serve you in time of illness and something in your life to serve you in your death.” Bukhari transmitted it.
Source
Mishkat al-Masabih(مشكاة المصابيح)
Funerals
Hadith Number
1522