Hadithcore
Riyad as-Salihin, 477

Abu Hurairah (May Allah be pleased with him) reported:

Messenger of Allah (ﷺ) said, "Verily! The world is accursed and what it contains is accursed, except remembrance of Allah and those who associate themselves with Allah; and a learned man, and a learning person." <b>[At-Tirmidhi, who classified it as Hadith Hasan]</b>.

وعن أبي هُرَيْرَة رضي اللَّه عنه ، قال ‏:‏ سمعتُ رسولَ اللَّه صَلّى اللهُ عَلَيْهِ وسَلَّم يقول ألا إن الدنيا ملعونة، ملعون ما فيها، إلا ذكر الله تعالى، وما والاه، وعالماً ومتعلماً‏"‏‏.‏ ‏(‏‏(‏رواه الترمذي وقال‏:‏ حديث حسن‏)‏‏)‏‏.‏ ‏(‏‏(‏رواه الترمذي وقال‏:‏ حديث حسن‏)‏‏)‏‏.‏

References1 variant
In-Book Reference
Introduction, Hadith 477
Sharh · explanationclick to expand
<b>Guidance from the Hadith:</b><br> 1) All what exists in this world is deemed play and diversion, except remembrance of Allah and what is related to it. The wise person is he who knows the true worth of this life and its deception.<br> 2) It points out the great status of knowledge and its people. They are the honored ones in this transient life.<br> 3) In pursuit of knowledge, people are of two types: a scholar and a student. Both are following the path of salvation. So, be one of these two types in order to win and be saved.<br> <br> <br> <br> <b>Words in the Hadith:</b><br> Cursed: lowly, hateful.