It was for this reason that Muslims always regarded this...
It was for this reason that Muslims always regarded this prophecy as a source of great consolation and awaited it to be fulfilled. Under adverse conditions when they had lost all hope for the restoration of justice, the prophecy was even more in circulation, and those who sought reform, including those who had the ambition to abuse the simple faith of the people, took advantage of this prediction.
The first person who took advantage of the people's faith in Mahdiism and its religious underpinnings was Mukhtar. Following the tragic event of Karbala in 61 AH/680 CE, Mukhtar wanted to avenge the martyrs of Karbala and overthrow the Umayyad government. But he realized that the Hashimites and the Shi'is had lost hope in seizing the caliphate for themselves. Consequently, he saw the belief in Mahdiism as the only way to awaken the people and make them hopeful. Since Muhammad b.
Hanafiyya's name and patronymic were the same as that of the Prophet (peace be upon him and his progeny) (this was one of the recognized signs of the Mahdi) Mukhtar decided to seize the opportunity and introduced Muhammad b. Hanafiyya as the promised Mahdi and himself as his vizier and envoy. He told the people that Muhammad b. Hanafiyya was the promised Mahdi of Islam. At the time when the oppression and tyranny were increasing and Husayn b.
'Ali, his family, and companions were killed mercilessly at Karbala, the Mahdi had decided to rise in order to avenge the martyrs of Karbala, and restore justice on earth as it had been filled with wickedness. He then introduced himself as the Mahdi's representative. In this manner Mukhtar launched an insurrection and killed a group of murderers who had participated in killing Imam Husayn. This was, by the way, the first time that an insurrection had been launched against the caliphate.
The second person who manipulated the faith in the Mahdi for his own political ends was Abu Muslim of Khurasan. Abu Muslim organized a widespread movement against the Umayyads in Khurasan with the pretext of avenging the blood of Imam Husayn, his family and companions who were killed in the tragic event of Karbala. In addition, he rose to avenge the cruel murders of Zayd b. 'Ali during the caliphate of Hisham b. 'Abd al-Malik and of Yahya b. Zayd during the caliphate of Walid.
A group of people regarded Abu Muslim himself to be the awaited Mahdi.