Jami` at-Tirmidhi, Book 36, Hadith 19 (Tirmidhi 2391)
Abu Hurairah narrated that the Messenger of Allah (s.a.w) said:
"Lo! Indeed the world is cursed. What is in it is cursed, except for remembrance of Allah, what is conducive to that, the knowledgeable person and the learning person."