كتاب المقدمات
The Book of Miscellany
(65)
Chapter: Remembrance of Death and Restraint of Wishes
(65)
- باب ذكر الموت وقصر الأمل
Riyad as-Salihin 573
'Abdullah bin 'Umar (May Allah be pleased with them) reported:
Messenger of Allah (ﷺ) took hold of my shoulders and said, "Be in the world like a stranger or a wayfarer." Ibn 'Umar (May Allah be pleased with them) used to say: When you survive till the evening do not expect to live until the morning; and when you survive till the morning do not expect to live until the evening. While in good health (do good deeds) before you fall sick; and while you are alive (do good deeds) before death strikes.

[Al- Bukhari].

وعن ابن عمر رضي الله عنهما قال‏:‏ أخذ رسول الله صلى الله عليه وسلم بمنكبي فقال‏:‏ ‏ "‏كن فى الدنيا كأنك غريب أو عابر سبيل‏"‏‏.‏

وكان ابن عمر رضي الله عنهما يقول‏:‏ إذا أمسيت، فلا تنتظر الصباح، وإذا أصبحت، فلا تنتظر المساء، وخذ من صحتك لمرضك، ومن حياتك لموتك “ ‏(‏‏(‏رواه البخاري‏)‏‏)‏‏.‏

Reference : Riyad as-Salihin 573
In-book reference : Introduction, Hadith 573