Jami` at-Tirmidhi, Book 47, Hadith 3351 (In-Book)

Narrated Abu Hurairah: that the Prophet said: "There are three, for which when they appear, a soul will not benefit by its faith, if it did not believe before the Signs: Ad-Dajjal, the Beast, and the rising of the sun from its setting place" - or "from the west."

حَدَّثَنَا عَبْدُ بْنُ حُمَيْدٍ، حَدَّثَنَا يَعْلَى بْنُ عُبَيْدٍ، عَنْ فُضَيْلِ بْنِ غَزْوَانَ، عَنْ أَبِي حَازِمٍ، عَنْ أَبِي هُرَيْرَةَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏ "‏ ثَلاَثٌ إِذَا خَرَجْنَ ‏:‏ ‏(‏لَمْ يَنْفَعْ نَفْسًا إِيمَانُهَا لَمْ تَكُنْ آمَنَتْ مِنْ قَبْلُ ‏)‏ الآيَةَ الدَّجَّالُ وَالدَّابَّةُ وَطُلُوعُ الشَّمْسِ مِنَ الْمَغْرِبِ أَوْ مِنْ مَغْرِبِهَا ‏" ‏ ‏.‏ قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ ‏.‏ وَأَبُو حَازِمٍ هُوَ الأَشْجَعِيُّ الْكُوفِيُّ وَاسْمُهُ سَلْمَانُ مَوْلَى عَزَّةَ الأَشْجَعِيَّةِ ‏.‏

sunnah.com