Muhammad ibn al-Hanafiyya (Arabic:مُحَمَّد ابْن الْحَنَفِيَّة,romanized: Muḥammad ibn al-Ḥanafiyya,c. 637–700, 15–81AH) was a son ofAli ibn Abi Talib, who was the fourthcaliph inSunni Islam (r. 656–661) and the firstimam inShia Islam. Ibn al-Hanafiyya was an effective lieutenant for his father Ali during his caliphate. After the assassination of Ali and the deaths of his two sonsHasan andHusayn, many recognized Ibn al-Hanafiyya as the head of theHouse of Ali. Claiming to represent Ibn al-Hanafiyya,Mukhtar al-Thaqafi rose inIraq in 686 to avenge Husayn and his relatives, who weremassacred in 680 CE by forces of theUmayyad caliphYazid bin Mu'awiya (r. 680–683). The quiescent Ibn al-Hanafiyya did not actively associate with this rebellion but was still rescued by Mukhtar when he was detained by the rival caliphUbayd Allah ibn Ziyad. Support for Ibn al-Hanafiyya continued even after the defeat and death of Mukhtar in 686–687 in the form of theKaysanites, a now-extinctShia sect that traced the imamate to Ibn al-Hanafiyya and his descendants, particularly his sonAbu Hashim. After the death of Ibn al-Hanafiyya in 700–701, some Kaysanites declared that he was theMahdi, the eschatological Islamic leader who would reappear in the end of time and eradicate injustice and evil. The Kaysanites later provided the organizational structure for theAbbasids to overthrew the Umayyads in 750–751.
Soon after the assassination of the third Rashidun caliphUthman ibn Affan (r. 644–656), Ali was elected to the caliphate inMedina.[4] During his caliphate, Ibn al-Hanafiyya accompanied Ali in battles,[4] as his champion and standard-bearer.[7][8] When Ali was assassinated inKufa in January 661,[9][10] his eldest sonHasan was elected caliph there,[11][12] but later abdicated in favor ofMu'awiya I (r. 661–680) in August 661.[13][14] Hasan died in 669 in Medina, probably poisoned at the instigation of Mu'awiya,[14][13][15] who thus paved the way for the succession of his sonYazid I (r. 680–683)[16][17] often portrayed byMuslim historians as impious and immoral.[16][18][19] Hasan was thus succeeded by his younger brotherHusayn as the head of Muhammad's family.[13] When theUmayyadMarwan and the prophet's widowAisha prevented the burial of Hasan near his grandfather, Ibn Hanafiyya is said to have convinced Husayn to bury their brother in theBaqi Cemetery.[20]
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 forMecca to avoid recognizing Yazid as the caliph.[8] There Husayn received some letters of support from Kufans, whose intentions were verified by his envoy,Muslim ibn Aqil.[8] Among many others, Ibn al-Hanafiyya is said to have warned Husayn not to trust the Kufans, who had betrayed their father Ali and their brother Hasan, suggesting that he should instead stay in Mecca or conceal himself in Yemen.[8][21] Husayn ignored such warnings,[8] saying that he expected to be killed while fighting the tyranny of Yazid.[22][23] On their way to Kufa in 680, Husayn's small caravan was intercepted by the Umayyad army.[8] He was killed in the ensuingBattle of Karbala, alongside most of his male relatives and his small retinue, having been surrounded for some days and deprived of the drinking water of the nearbyEuphrates River. After the battle, the women and children in Husayn's camp were taken prisoner and marched to the Umayyad capitalDamascus inSyria.[16][18][19] The promised Kufan support did not materialize asUbayd Allah ibn Ziyad, the new governor of Kufa, killed Husayn's envoy and intimidated Kufan tribal chiefs.[8] Unlike Husayn, the quiescent Ibn al-Hanafiyya is said to have pledged his allegiance to Yazid.[24]
After the death of Husayn, his only surviving son,Ali ibn Husayn Zayn al-Abidin, retired to an apolitical life in Medina.[25][26] Ibn al-Hanafiyya was thus considered by many as the head of theHouse of Ali.[25][2] Indeed,Mukhtar al-Thaqafi soon claimed to represent Ibn Hanafiyya in Kufa, calling for revenge for the Karbala massacre.[27][28] His efforts were bolstered by the defeat of the alternativeTawwabun rebellion in 684. Mukhtar eventually seized control of Kufa in 686 fromAbd Allah ibn Zubayr, who had established in 680 an alternative caliphate in Mecca that rivaled the Umayyads.[27] It is doubtful that Mukhtar actually represented the quiescent Ibn Hanafiyya.[24][29] Nevertheless, the noncommittal response of Ibn Hanafiyya was interpreted by a Kufan delegation as an implicit endorsement of Mukhtar,[30][31] which in turn strengthened the Kufans' support for the latter.[2]
After Husayn's death, Mukhtar likely considered Ibn Hanafiyya as the rightful imam,[32] referring to him as Ali's survivingwasi (lit.'legatee') after Hasan and Husayn.[33] Mukhtar also referred to Ibn Hanafiyya as theMahdi (lit.'the rightly-guided one'), that is, the leader who would deliver Muslims from oppression and spread justice.[26] At this point, however, this title of Ibn Hanafiyya probably did not have any messianic implications.[34][35] At any rate, Ibn Hanafiyya is said to have avoided this title,[2] as he remained in his hometown of Medina and declined active leadership of the revolution.[28] Perhaps an indication of his equivocal attitude towards the rebellion, Ibn Hanafiyya is said to have been represented in some laterHajj pilgrimages by his personal flag as the head of the House of Ali.[36][25]
True to his promise,[37] Mukhtar killed several figures thought to be responsible for the Karbala massacre, including the Kufa governor Ibn Ziyad and the Umayyad commanderUmar ibn Sa'd (d. 686), whose head was then sent to Ibn al-Hanafiyya by some accounts.[36][38] Also killed wasShamir ibn Dhi al-Jawshan,[39] often viewed as responsible for beheading Husayn in Karbala.[40][41] Elsewhere, Murra ibn Munqidh al-Abdi survived a revenge attempt but was severely wounded.[42] He is said to have killed Husayn's sonAli al-Akbar.[43][42] YetAsma ibn Kharija al-Fazari andMuhammad 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.[44]
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.[45] Some have therefore suggested that Ibn al-Hanafiyya might have had his own ambitions for the high office.[36] 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.[45] He now wrote to Mukhtar for help and was rescued by his military detachment(s).[2][46] The rescue mission is said to have been bloodless, as Ibn Hanafiyya had forbidden Mukhtar's men from fighting in the sanctuary of Mecca.[46] This appeal for help suggests that the passive attitude of Ibn Hanafiyya towards Mukhtar has been exaggerated.[36] Ibn Hanafiyya then settled inMina, near Mecca, and later inTa'if.[2]
Mukhtar was defeated and killed in 686–687,[26] yet Ibn Hanafiyya was not compromised afterward, which perhaps indicates his weak ties with Mukhtar.[2] 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 caliphAbd al-Malik (r. 685–705).[36] By some accounts, he visited the caliph in Damascus in 692,[47] who generously compensated him.[36][24]
The now-extinct Kaysanites was aShia sect that traced the imamate to Ibn Hanafiyya and his descendants.[48][49] The sect emerged from the uprising of Mukhtar,[50] whose death did not end the propaganda in favor of Ibn Hanafiyya.[26][51] The Kaysanites condemned the caliphs preceding Ali ibn Abi Talib as usurpers of his right to succeed the Islamic prophet Muhammad.[52][53] Most of them regarded Hasan, then Husayn, and finally Ibn Hanafiyya as the divinely-appointed imams after Ali ibn Abi Talib.[50][53] When Ibn Hanafiyya died in 700–701,[2] or in 703 or 705,[54] most Kaysanites followed his sonAbu Hashim,[55] but some thought that Ibn Hanafiyya had enteredoccultation, that is, he was providentially concealed from mankind until his reappearance by divine will.[55] 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.[56][57][51] Being the last (notable) son of Ali, the death of Ibn Hanafiyya also further divided the Shia community.[58]
It is difficult to estimate the numerical strength of the Kaysanites.[59] Late during the Umayyad period, they likely outnumbered the imamite Shias, who followed a Husaynid line of imams.[60][61] Indeed, Ibn Hanafiyya and later his successor Abu Hashim diverted considerable support from Ali Zayn al-Abidin and his successorMuhammad al-Baqir, for neither of the two laid any public claims to the imamate.[62] The movement of Mukhtar ultimately paved the way for the overthrow of the Umayyads,[63] as the Kaysanites provided the organizational structure for the successful rebellion of theAbbasids,[64][65] 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.[65][66] 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.[67][65] The Abbasids thus gradually turned against the mainstream Shia,[68][69] carrying with themselves large numbers of the Kaysanites toSunnism.[70]
Daftary, F. (2015). "Shi'i Communities in History". In Daftary, F.; Sajoo, A.B.; Jiwa, S. (eds.).The Shi'i World: Pathways in Tradition and Modernity. I.B. Tauris. pp. 169–209.ISBN9781784534776.
Dakake, M.M. (2007).The Charismatic Community: Shi'ite Identity in Early Islam. State University of New York Press.ISBN9780791470336.
Pinault, D. (2000). "Zaynab bin 'Ali and the Place of the Women of the Households of the First Imāms in Shī'īte Devotional Literature". In Hambly, G. (ed.).Women in the Medieval Islamic World: Power, Patronage, and Piety. Macmillan.ISBN9780333800355.