The Messenger of Allah ﷺ said, "The Hour will not come until the sun rises from where it sets. When it rises and the people see it, they will all believe. That is the time when 'no soul will benefit from its faith if it had not believed before, or earned good through its faith' [Anam 6:158]."
وقال رسول الله ﷺ لا تقوم الساعة حتى تطلع الشمس من مغربها فإذا طلعت ورآها الناس آمنوا أجمعون وذلك حين {لا ينفع نفسا إيمانها لم تكن آمنت من قبل أو كسبت في إيمانها خيرا}
This is also sahih due to the authenticity of the Sahifah, and it is in the Sahifah Mufradah under number 25. Bukhari related it [6:58 / 8:2237 Fath] through the route of the Sahifah, and likewise Muslim related it [1:95 S / 1:55 Bulaq] through its route, but he did not give its wording, referring instead to a narration through another route before it. It has already appeared from another angle at 7161. See also 7697.