The Messenger of Allah ﷺ said, "The Hour will not arrive until the sun rises from its place of setting. When people see this, everyone on earth will believe. But that will be the moment when 'no soul will benefit from its faith if it had not believed before' [Anam 6:158]."
قال رسول الله ﷺ: لا تقوم الساعة حتى تطلع الشمس من مغربها. فإذا رآها الناس، آمن من عليها. فذاك حين {لا ينفع نفسا ايمانها لم تكن امنت من قبل}.
Bukhari narrated it in the Tafsir (4635), and Muslim in the Faith (157), both of them through the route of Umara bin Qaqa, who said, our teacher Abu Zura told us, our teacher Abu Hurairah told us, and he said what he said. The wording is that of Bukhari. Muslim did not present his own wording with this chain, but rather referred back to the wording of another chain preceding it, which was similar to it.