Abdullah bin Umar reported,

The Messenger of Allah ﷺ took hold of part of my body and said, "Be in this world as though you were a stranger or a wayfarer, and count yourself among the people of the graves."Then Ibn Umar said to me, "When you reach the morning, do not expect to see the evening, and when you reach the evening, do not expect to see the morning. Take from your health before your sickness, and from your life before your death, for you do not know, Abdullah, what your name will be tomorrow."

Tirmidhi 2333

Sahih

حدثنا محمود بن غيلان حدثنا أبو أحمد حدثنا سفيان عن ليث عن مجاهد

عن ابن عمر قال

أخذ رسول الله ﷺ ببعض جسدي فقال كن في الدنيا كأنك غريب أو عابر سبيل وعد نفسك في أهل القبور فقال لي ابن عمر إذا أصبحت فلا تحدث نفسك بالمساء وإذا أمسيت فلا تحدث نفسك بالصباح وخذ من صحتك قبل سقمك ومن حياتك قبل موتك فإنك لا تدري يا عبد الله ما اسمك غدا

الترمذي 2333صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Asceticism
Chapter
Shortening hope
Numbering
Darussalam 2333
Tirmidhi 2333