Birth
Often known by his title Ibn al-Hanafiyya, Muhammad was born to Khawla bint Ja'far, a woman from the Banu Hanifa tribe, and Ali ibn Abi Talib, a cousin of the Islamic prophetEarly life
Soon after the assassination of the third Rashidun caliph Uthman ibn Affan (), Ali was elected to the caliphate in Medina. During his caliphate, Ibn al-Hanafiyya accompanied Ali in battles, as his champion and standard-bearer. When Ali was assassinated in Kufa in January 661, his eldest son Hasan was elected caliph there, but later abdicated in favor ofBattle of Karbala
Upon Mu'awiya's death and Yazid's accession in 680, the latter instructed his governor of Medina to secure Husayn's pledge of allegiance by force. Husayn immediately left forUprising of Mukhtar
After the death of Husayn, his only surviving son, Ali ibn Husayn Zayn al-Abidin, retired to an apolitical life in Medina. Ibn al-Hanafiyya was thus considered by many as the head of the House of Ali. Indeed, Mukhtar al-Thaqafi soon claimed to represent Ibn Hanafiyya in Kufa, calling for revenge for the Karbala massacre. His efforts were bolstered by the defeat of the alternative Tawwabun rebellion in 684. Mukhtar eventually seized control of Kufa in 686 from Abd Allah ibn Zubayr, who had established in 680 an alternative caliphate in Mecca that rivaled the Umayyads. It is doubtful that Mukhtar actually represented the quiescent Ibn Hanafiyya. Nevertheless, the noncommittal response of Ibn Hanafiyya was interpreted by a Kufan delegation as an implicit endorsement of Mukhtar, which in turn strengthened the Kufans' support for the latter.Mahdi
After Husayn's death, Mukhtar likely considered Ibn Hanafiyya as the rightful imam, referring to him as Ali's surviving () after Hasan and Husayn. Mukhtar also referred to Ibn Hanafiyya as the Mahdi (), that is, the leader who would deliver Muslims from oppression and spread justice. At this point, however, this title of Ibn Hanafiyya probably did not have any messianic implications. At any rate, Ibn Hanafiyya is said to have avoided this title, as he remained in his hometown of Medina and declined active leadership of the revolution. Perhaps an indication of his equivocal attitude towards the rebellion, Ibn Hanafiyya is said to have been represented in some laterAvenging Husayn
True to his promise, Mukhtar killed several figures thought to be responsible for the Karbala massacre, including the Kufa governor Ibn Ziyad and the Umayyad commander Umar ibn Sa'd (), whose head was then sent to Ibn al-Hanafiyya by some accounts. Also killed was Shamir ibn Dhi al-Jawshan, often viewed as responsible for beheading Husayn in Karbala. Elsewhere, Murra ibn Munqidh al-Abdi survived a revenge attempt but was severely wounded. He is said to have killed Husayn's son Ali al-Akbar. Yet Asma ibn Kharija al-Fazari and Muhammad ibn al-Ash'ath al-Kindi escaped Mukhtar unharmed. The former was sought for his role in killing Muslim ibn Aqil and the latter was accused of insulting Husayn in Karbala.Confrontation with Ibn al-Zubayr
Saying that he was waiting for communal consensus, Ibn Hanafiyya had refused to pledge his allegiance to Ibn al-Zubayr, the self-proclaimed caliph in Mecca. Some have therefore suggested that Ibn al-Hanafiyya might have had his own ambitions for the high office. Perhaps it was this refusal to take the oath of allegiance and the takeover of Kufa by Mukhtar that provoked the Meccan caliph to imprison Ibn Hanafiyya. He now wrote to Mukhtar for help and was rescued by his military detachment(s). The rescue mission is said to have been bloodless, as Ibn Hanafiyya had forbidden Mukhtar's men from fighting in the sanctuary of Mecca. This appeal for help suggests that the passive attitude of Ibn Hanafiyya towards Mukhtar has been exaggerated. Ibn Hanafiyya then settled in Mina, near Mecca, and later in Ta'if.Death of Mukhtar
Mukhtar was defeated and killed in 686687, yet Ibn Hanafiyya was not compromised afterward, which perhaps indicates his weak ties with Mukhtar. Ibn Hanafiyya continued to withhold his support from the two rival caliphates until the fall of Zubayr in 692, at which point he pledged his allegiance to the Umayyad caliph Abd al-Malik (). By some accounts, he visited the caliph in Damascus in 692, who generously compensated him.Kaysanites
The now-extinct Kaysanites was a Shia sect that traced the imamate to Ibn Hanafiyya and his descendants. The sect emerged from the uprising of Mukhtar, whose death did not end the propaganda in favor of Ibn Hanafiyya. The Kaysanites condemned the caliphs preceding Ali ibn Abi Talib as usurpers of his right to succeed the Islamic prophet Muhammad. Most of them regarded Hasan, then Husayn, and finally Ibn Hanafiyya as the divinely-appointed imams after Ali ibn Abi Talib. When Ibn Hanafiyya died in 700701, or in 703 or 705, most Kaysanites followed his son Abu Hashim, but some thought that Ibn Hanafiyya had entered occultation, that is, he was providentially concealed from mankind until his reappearance by divine will. This was perhaps when the concept of the Mahdi became mainstream as the eschatological Islamic leader who would eradicate injustice and evil in the end of time. Being the last (notable) son of Ali, the death of Ibn Hanafiyya also further divided the Shia community. It is difficult to estimate the numerical strength of the Kaysanites. Late during the Umayyad period, they likely outnumbered the imamite Shias, who followed a Husaynid line of imams. Indeed, Ibn Hanafiyya and later his successor Abu Hashim diverted considerable support from Ali Zayn al-Abidin and his successor Muhammad al-Baqir, for neither of the two laid any public claims to the imamate. The movement of Mukhtar ultimately paved the way for the overthrow of the Umayyads, as the Kaysanites provided the organizational structure for the successful rebellion of the Abbasids, who claimed descent from Muhammad's paternal uncle, Abbas. They postulated that Abu Hashim was succeeded to the imamate by the head of the Abbasid family, Muhammad ibn Ali. This was apparently the main Abbasid claim to legitimacy until they declared around 780 that the heir of the Islamic prophet Muhammad was his uncle Abbas rather than his cousin and son-in-law, Ali ibn Abi Talib. The Abbasids thus gradually turned against the mainstream Shia, carrying with themselves large numbers of the Kaysanites to Sunnism.Family tree
Footnotes
Sources
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * {{DEFAULTSORT:Muhammad Ibn Alhanafiyya Tabi‘un 630s births 700 deaths Children of Ali Arab princes 7th-century Arab people Mahdism Sons of caliphs