Sayyiduna Amir Abu al-Tufayl al-Laythi (may Allah be pleased with him) narrates from Sayyiduna Ali (may Allah be pleased with him) that he said that the Messenger of Allah (peace and blessings be upon him) said: "If only a single day remained of the duration of this world, Allah, the Mighty and Majestic, would raise up a man from among us who would fill the earth with justice and fairness just as it will have been filled with oppression and tyranny."
Abu Nu'aym (may Allah have mercy on him) (in his narration) gave the words "a man from me".
The narrator said: I once heard him mention this narration from Habib (may Allah have mercy on him), from Sayyiduna Abu al-Tufayl (may Allah be pleased with him), from Sayyiduna Ali (may Allah be pleased with him), from the Prophet (peace and blessings be upon him).
Related hadith on this topic