Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
tirmidhi:2333Maḥmūd b. Ghaylān > Abū Aḥmad > Sufyān > Layth > Mujāhid > Ibn ʿUmar

"The Messenger of Allah ﷺ grabbed me on part of my body and said: 'Be in the world like a stranger or a passerby, and count yourself among the inhabitants of the grave.'" Ibn 'Umar said to me: "When you wake up in the morning, then do not concern yourself with the evening. And when you reach the evening, then do not concern yourself with the morning. Take from your health before your illness, and from your life before your death, for indeed O slave of Allah! You do not know what your description shall be tomorrow." (sahih)  

الترمذي:٢٣٣٣حَدَّثَنَا مَحْمُودُ بْنُ غَيْلاَنَ حَدَّثَنَا أَبُو أَحْمَدَ حَدَّثَنَا سُفْيَانُ عَنْ لَيْثٍ عَنْ مُجَاهِدٍ عَنِ ابْنِ عُمَرَ قَالَ

أَخَذَ رَسُولُ اللَّهِ ﷺ بِمِنْكَبِي فَقَالَ كُنْ فِي الدُّنْيَا كَأَنَّكَ غَرِيبٌ أَوْ عَابِرُ سَبِيلٍ وَعُدَّ نَفْسَكَ فِي أَهْلِ الْقُبُورِ فَقَالَ لِي ابْنُ عُمَرَ إِذَا أَصْبَحْتَ فَلاَ تُحَدِّثْ نَفْسَكَ بِالْمَسَاءِ وَإِذَا أَمْسَيْتَ فَلاَ تُحَدِّثْ نَفْسَكَ بِالصَّبَاحِ وَخُذْ مِنْ صِحَّتِكَ قَبْلَ سَقَمِكَ وَمِنْ حَيَاتِكَ قَبْلَ مَوْتِكَ فَإِنَّكَ لاَ تَدْرِي يَا عَبْدَ اللَّهِ مَا اسْمُكَ غَدًا  

قَالَ أَبُو عِيسَى وَقَدْ رَوَى هَذَا الْحَدِيثَ الأَعْمَشُ عَنْ مُجَاهِدٍ عَنِ ابْنِ عُمَرَ نَحْوَهُ حَدَّثَنَا أَحْمَدُ بْنُ عَبْدَةَ الضَّبِّيُّ الْبَصْرِيُّ حَدَّثَنَا حَمَّادُ بْنُ زَيْدٍ عَنْ لَيْثٍ عَنْ مُجَاهِدٍ عَنِ ابْنِ عُمَرَ عَنِ النَّبِيِّ ﷺ نَحْوَهُ

See similar narrations below:

Collected by Bukhārī, Ibn Ḥibbān
bukhari:6416ʿAlī b. ʿAbdullāh > Muḥammad b. ʿAbd al-Raḥman Abū al-Mundhir al-Ṭufāwī > Sulaymān al-Aʿmash > Mujāhid > ʿAbdullāh b. ʿUmar

ʿAbdullah bin ʿUmar said, "Messenger of Allah ﷺ took hold of my shoulder and said, 'Be in this world as if you were a stranger or a traveler." The sub-narrator added: Ibn ʿUmar used to say, "If you survive till the evening, do not expect to be alive in the morning, and if you survive till the morning, do not expect to be alive in the evening, and take from your health for your sickness, and (take) from your life for your death."  

البخاري:٦٤١٦حَدَّثَنَا عَلِيُّ بْنُ عَبْدِ اللَّهِ حَدَّثَنَا مُحَمَّدُ بْنُ عَبْدِ الرَّحْمَنِ أَبُو الْمُنْذِرِ الطُّفَاوِيُّ عَنْ سُلَيْمَانَ الأَعْمَشِ قَالَ حَدَّثَنِي مُجَاهِدٌ عَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ ؓ قَالَ

أَخَذَ رَسُولُ اللَّهِ ﷺ بِمَنْكِبِي فَقَالَ كُنْ فِي الدُّنْيَا كَأَنَّكَ غَرِيبٌ أَوْ عَابِرُ سَبِيلٍ وَكَانَ ابْنُ عُمَرَ يَقُولُ إِذَا أَمْسَيْتَ فَلاَ تَنْتَظِرِ الصَّبَاحَ وَإِذَا أَصْبَحْتَ فَلاَ تَنْتَظِرِ الْمَسَاءَ وَخُذْ مِنْ صِحَّتِكَ لِمَرَضِكَ وَمِنْ حَيَاتِكَ لِمَوْتِكَ  

ذِكْرُ الْإِخْبَارِ عَنِ الْوَصْفِ الَّذِي يَجِبُ أَنْ يَكُونَ الْمَرْءُ فِي هَذِهِ الدُّنْيَا الْفَانِيَةِ الزَّائِلَةِ

ibnhibban:698Isḥāq b. Ibrāhīm b. Ismāʿīl Bibust > al-Ḥasan b. Qazaʿah > Muḥammad b. ʿAbd al-Raḥman al-Ṭufāwī > al-Aʿmash > Mujāhid > Ibn ʿUmar

ʿAbdullah bin ʿUmar said, "Messenger of Allah ﷺ took hold of my shoulder and said, 'Be in this world as if you were a stranger or a traveler." The sub-narrator added: Ibn ʿUmar used to say, "If you survive till the evening, do not expect to be alive in the morning, and if you survive till the morning, do not expect to be alive in the evening, and take from your health for your sickness, and (take) from your life for your death." (Using translation from Bukhārī 6416)  

ابن حبّان:٦٩٨أَخْبَرَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ بْنِ إِسْمَاعِيلَ بِبُسْتَ قَالَ حَدَّثَنَا الْحَسَنُ بْنُ قَزَعَةَ قَالَ حَدَّثَنَا مُحَمَّدُ بْنُ عَبْدِ الرَّحْمَنِ الطُّفَاوِيُّ قَالَ حَدَّثَنَا الْأَعْمَشُ عَنْ مُجَاهِدٍ عَنِ ابْنِ عُمَرَ قَالَ

أَخَذَ رَسُولُ اللَّهِ ﷺ بِمَنْكِبِي أَوْ قَالَ بِمَنْكِبَيَّ فقَالَ «كُنْ فِي الدُّنْيَا كَأَنَّكَ غَرِيبٌ أَوْ عَابِرُ سَبِيلٍ» قَالَ فَكَانَ ابْنُ عُمَرَ يَقُولُ إِذَا أَصْبَحْتَ فَلَا تَنْتَظِرُ الْمَسَاءَ وَإِذَا أَمْسَيْتَ فَلَا تَنْتَظِرُ الصَّبَّاحَ وَخُذْ مِنْ صِحَّتِكَ لِمَرَضِكَ وَمَنْ حَيَاتِكَ لِمَوْتِكَ