Abu Huraira reported: The Messenger of Allah, peace and blessings be upon him, said, “When three signs appear, no soul will benefit from its faith if it did not already believe or earn good by its faith: the rising of the sun from the west, the False Messiah, and the beast from the earth.”
Source: Ṣaḥīḥ Muslim 158
Grade: Sahih (authentic) according to Muslim
عَنْ أَبِي هُرَيْرَةَ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ثَلَاثٌ إِذَا خَرَجْنَ لَا يَنْفَعُ نَفْسًا إِيمَانُهَا لَمْ تَكُنْ آمَنَتْ مِنْ قَبْلُ أَوْ كَسَبَتْ فِي إِيمَانِهَا خَيْرًا طُلُوعُ الشَّمْسِ مِنْ مَغْرِبِهَا وَالدَّجَّالُ وَدَابَّةُ الْأَرْضِ
158 صحيح مسلم كتاب الإيمان باب بيان الزمن الذي لا يقبل فيه الإيمان