Mishkat al-Masabih
Mishkat al-Masabih 5467
وَعَنْ أَبِي هُرَيْرَةَ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «ثَلَاثٌ إِذَا خَرَجْنَ (لَا يَنْفَعُ نَفْسًا إِيمَانُهَا لَمْ تَكُنْ آمَنَتْ مِنْ قَبْلُ أَوْ كَسَبَتْ فِي إِيمَانِهَا خَيْرًا) طُلُوعُ الشَّمْسِ مِنْ مَغْرِبِهَا وَالدَّجَّالُ وَدَابَّةُ الْأَرْضِ» . رَوَاهُ مُسلم
It is related from Abu Hurayrah that the Messenger of Allah (may Allah bless him and grant him peace) said: When three things appear, faith will not benefit a soul that did not believe before or earn good through its faith: the sun rising from its setting place, the Dajjal, and the Beast of the Earth. Muslim transmitted it.
Translation notes
The report quotes a Quranic phrase about faith not benefiting one who had not believed before or earned good through faith.