Sunan Ibn Majah, Book 36, Hadith 160 (Ibn Majah 4088)

It was narrated from 'Ali that the Messenger of Allah (ﷺ) said:

"Mahdi is one of us, the people of the Household. Allah will rectify him in a single night."