Sahih Muslim, Book 54, Hadith 75 (Muslim 7221)

Abu Huraira reported Allah's Messenger (ﷺ) as saying:

The day and the night would not come to an end before a man called al-Jahjah would occupy the throne.