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."[At-Tirmidhi].
Arabic/English book reference: Book 1, Hadith 478