The Messenger of Allah ﷺ said, "When three signs appear, faith will no longer benefit a soul that did not believe beforehand or earn 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 Book of Iman (158) through various routes from Fudayl bin Ghazwan, from his father, from Abu Hazim, from Abu Hurairah who said, then he mentioned it.