Hadith 5176
وَعَنْهُ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: «أَلَا إِنَّ الدُّنْيَا مَلْعُونَةٌ مَلْعُونٌ مَا فِيهَا إِلا ذكرُ الله وَمَا وَالَاهُ وَعَالِمٌ أَوْ مُتَعَلِّمٌ» . رَوَاهُ التِّرْمِذِيُّ وَابْنُ مَاجَهْ
It is narrated from Abu Hurairah, may Allah be pleased with him, that the Messenger of Allah, peace and blessings be upon him, said: "Behold! The world and whatever is in it are all accursed, except for the remembrance of Allah, the deeds beloved to Allah, and the scholar and the learner." Its chain is good. Narrated by al-Tirmidhi and Ibn Majah.