Abu Huraira reported: The Messenger of Allah, peace and blessings be upon him, said, “Whoever seeks the world will be harmed in the Hereafter, and whoever seeks the Hereafter will be harmed in the world. Thus, be harmed by the ephemeral for the sake of the everlasting.”
Source: al-Zuhd li-Ibn Abī ‘Āṣim 154
Grade: Hasan (fair) according to Al-Albani
عَنْ أَبِي هُرَيْرَةَ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مَنْ طَلَبَ الدُّنْيَا أَضَرَّ بِالآخِرَةِ وَمَنْ طَلَبَ الآخِرَةَ أَضَرَّ بِالدُّنْيَا فأَضِرُّوا بِالْفَانِي لِلْبَاقِي
154 الزهد لابن أبي عاصم
3287 المحدث الألباني خلاصة حكم المحدث إسناده حسن في السلسلة الصحيحة