Mishkat al-Masabih 1604
وَعَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ قَالَ: أَخَذَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ بِمَنْكِبِي فَقَالَ: «كُنْ فِي الدُّنْيَا كَأَنَّكَ غَرِيبٌ أَوْ عَابِرُ سَبِيلٍ» . وَكَانَ ابْنُ عُمَرَ يَقُولُ: إِذَا أَمْسَيْتَ فَلَا تَنْتَظِرِ الصَّبَاحَ وَإِذَا أَصْبَحْتَ فَلَا تَنْتَظِرِ الْمَسَاءَ وَخُذْ مِنْ صِحَّتِكَ لِمَرَضِكَ وَمِنْ حياتك لموتك. رَوَاهُ البُخَارِيّ
From ʿAbdullah ibn ʿUmar, who said: The Messenger of Allah ﷺ took hold of my shoulder and said: "Be in this world as if you were a stranger or a traveller passing by." And Ibn ʿUmar used to say: "When you reach the evening, do not wait for the morning; and when you reach the morning, do not wait for the evening. Take from your health for your illness, and from your life for your death." Reported by al-Bukhari.