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.
bukhari:6420ʿAlī b. ʿAbdullāh > Abū Ṣafwān ʿAbdullāh b. Saʿīd > Yūnus > Ibn Shihāb > Saʿīd b. al-Musayyab > Abū Hurayrah

I heard Messenger of Allah ﷺ saying, "The heart of an old man remains young in two respects, i.e., his love for the world (its wealth, amusements and luxuries) and his incessant hope."  

البخاري:٦٤٢٠حَدَّثَنَا عَلِيُّ بْنُ عَبْدِ اللَّهِ حَدَّثَنَا أَبُو صَفْوَانَ عَبْدُ اللَّهِ بْنُ سَعِيدٍ حَدَّثَنَا يُونُسُ عَنِ ابْنِ شِهَابٍ قَالَ أَخْبَرَنِي سَعِيدُ بْنُ الْمُسَيَّبِ أَنَّ أَبَا هُرَيْرَةَ ؓ قَالَ

سَمِعْتُ رَسُولَ اللَّهِ ﷺيَقُولُ: «لاَ يَزَالُ قَلْبُ الْكَبِيرِ شَابًّا فِي اثْنَتَيْنِ: فِي حُبِّ الدُّنْيَا، وَطُولِ الأَمَلِ۔»  

قَالَ اللَّيْثُ حَدَّثَنِي يُونُسُ وَابْنُ وَهْبٍ عَنْ يُونُسَ عَنِ ابْنِ شِهَابٍ قَالَ أَخْبَرَنِي سَعِيدٌ وَأَبُو سَلَمَةَ

See similar narrations below:

Collected by Nasāʾī's Kubrá, Suyūṭī
nasai-kubra:11766Hārūn b. Saʿīd > Khālid b. Nizār > al-Qāsim b. Mabrūr > Yūnus > al-Zuhrī > Saʿīd b. al-Musayyib And ʾAbī Salamah > Abū Hurayrah

[Machine] From the Prophet ﷺ who said: The heart of the elderly person will continue to be youthful in two things; love for wealth and having long hope.  

الكبرى للنسائي:١١٧٦٦عَنْ هَارُونَ بْنِ سَعِيدٍ عَنْ خَالِدِ بْنِ نِزَارٍ عَنِ الْقَاسِمِ بْنِ مَبْرُورٍ عَنْ يُونُسَ عَنِ الزُّهْرِيِّ عَنْ سَعِيدِ بْنِ الْمُسَيِّبِ وَأَبِي سَلَمَةَ كِلَاهُمَا عَنْ أَبِي هُرَيْرَةَ

عَنِ النَّبِيِّ ﷺ قَالَ لَا يَزَالُ قَلْبُ الشَّيْخِ شَابًّا فِي اثْنَتَيْنِ فِي حُبِّ الْمَالِ وَطُولِ الْأَمَلِ