Narrated Abdullah ibn Mas'ud: The Prophet (s.a.w.a.) said: If only one day of this world remained. Allah would lengthen that day (according to the version of Za'idah), till He raised up in it a man who belongs to me or to my family whose father's name is the same as my father's, who will fill the earth with equity and justice as it has been filled with oppression and tyranny (according to the version of Fitr). Sufyan's version says: The world will not pass away before the Arabs are ruled by a man of my family whose name will be the same as mine. Abu Dawud said: The version of 'Umar and Abu Bakr is the same as that of Sufyan.
Narrated Ali ibn AbuTalib: The Prophet (s.a.w.a.) said: If only one day of this time (world) remained, Allah would raise up a man from my family who would fill this earth with justice as it has been filled with oppression.
Narrated AbuSa'id al-Khudri: The Prophet (s.a.w.a.) said: The Mahdi will be of my stock, and will have a broad forehead a prominent nose. He will fill the earth will equity and justice as it was filled with oppression and tyranny, and he will rule for seven years.
Abu Dawud said: Abu Ishaq told that Ali looked at his son al-Hasan and said: This son of mine is a sayyid (chief) as named by the Prophet (s.a.w.a.), and from his loins will come forth a man who will be called by the name of your Prophet (s.a.w.a.) and resemble him in conduct but not in appearance. He then mentioned the story about his filling the earth with justice. Haroon says: Narrated unto us: Amr Ibn Abi Qais from Matraf Ibn Tareef from Abul Hasan from Hilal Ibn Amr who said: I heard Ali ibn AbuTalib say: The Prophet (s.a.w.a.) said: A man called al-Harith ibn Harrath will come forth from Ma Wara an-Nahr. His army will be led by a man called Mansur who will establish or consolidate things for Muhammad's family as Quraysh consolidated them for the Messenger of Allah (s.a.w.a.). Every believer must help him, or he said: respond to his sermons.