Jami` at-Tirmidhi 2333
Mujahid narrated that Ibn 'Umar said:
"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)
حَدَّثَنَا مَحْمُودُ بْنُ غَيْلاَنَ، حَدَّثَنَا أَبُو أَحْمَدَ، حَدَّثَنَا سُفْيَانُ، عَنْ لَيْثٍ، عَنْ مُجَاهِدٍ، عَنِ ابْنِ عُمَرَ، قَالَ أَخَذَ رَسُولُ اللَّهِ ﷺ بِمِنْكَبِي فَقَالَ " كُنْ فِي الدُّنْيَا كَأَنَّكَ غَرِيبٌ أَوْ عَابِرُ سَبِيلٍ وَعُدَّ نَفْسَكَ فِي أَهْلِ الْقُبُورِ " . فَقَالَ لِي ابْنُ عُمَرَ إِذَا أَصْبَحْتَ فَلاَ تُحَدِّثْ نَفْسَكَ بِالْمَسَاءِ وَإِذَا أَمْسَيْتَ فَلاَ تُحَدِّثْ نَفْسَكَ بِالصَّبَاحِ وَخُذْ مِنْ صِحَّتِكَ قَبْلَ سَقَمِكَ وَمِنْ حَيَاتِكَ قَبْلَ مَوْتِكَ فَإِنَّكَ لاَ تَدْرِي يَا عَبْدَ اللَّهِ مَا اسْمُكَ غَدًا " . 
قَالَ أَبُو عِيسَى وَقَدْ رَوَى هَذَا الْحَدِيثَ الأَعْمَشُ عَنْ مُجَاهِدٍ عَنِ ابْنِ عُمَرَ نَحْوَهُ .   حَدَّثَنَا أَحْمَدُ بْنُ عَبْدَةَ الضَّبِّيُّ الْبَصْرِيُّ، حَدَّثَنَا حَمَّادُ بْنُ زَيْدٍ، عَنْ لَيْثٍ، عَنْ مُجَاهِدٍ، عَنِ ابْنِ عُمَرَ، عَنِ النَّبِيِّ ﷺ نَحْوَهُ .