The Messenger of Allah ﷺ said, "Three things, when they appear, no soul will benefit from its faith if it had not believed before or earned good through its faith, the rising of the sun from its place of setting, the Dajjal, and the Beast of the Earth."
قال رسول الله ﷺ: ثلاث إذا خرجن لا ينفع نفسا إيمانها لم تكن آمنت من قبل أو كسبت في إيمانها خيرا: طلوع الشمس من مغربها، والدجال، ودابة الأرض.
Muslim narrated it in the chapter on faith (158) through multiple routes from Fudayl bin Ghazwan, from Abu Hazim, from Abu Hurairah, who mentioned it.