Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) reports this as a marfu' hadith: The Prophet (peace and blessings be upon him) said: "The world is cursed, and whatever is in it is cursed, except enjoining good, forbidding evil, and the remembrance of Allah."
Al-Bazzar recorded it; its chain contains al-Mughirah bin Mutarrif, and I do not know him; the rest of its narrators have been declared trustworthy.
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الفتن - أعاذنا الله منها / 12123