Verily, this world is cursed, and everything in it is cursed, except the remembrance of Allah an all what is relevant to it; a scholar and a seeker of knowledge.
[Ibn Maajah]
Original Hadith
"«ألا إن الدنيا مَلعُونة، مَلعُونٌ ما فيها، إلا ذكرَ الله تعالى، وما وَالاهُ، وعالما ومُتَعَلِّمَا».
[حسن.] - [رواه الترمذي وابن ماجه.]"