Muhammad ibn al-Hanafiyya
Alid political and religious leader (c.637-700)

Muhammad ibn al-Hanafiyya (Arabic: مُحَمَّد ابْن الْحَنَفِيَّة, romanized: Muḥammad ibn al-Ḥanafiyya, c. 637–700, 15–81 AH) was a son of Ali and an effective lieutenant for his father during his caliphate. After the assassination of Ali and the deaths of his two sons Hasan and Husayn, many recognized Ibn al-Hanafiyya as the head of the Alids. Claiming to represent Ibn al-Hanafiyya, Mukhtar al-Thaqafi rose in Iraq in 686 to avenge Husayn and his relatives, who were killed at the Battle of Karbala by the forces of the second Umayyad caliph Yazid I. 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 caliph Abd Allah ibn al-Zubayr.
Support for Ibn al-Hanafiyya continued even after the death of Mukhtar in 686 in the form of the Kaysanites, a now-extinct Shia sect that traced the Imamate to Ibn al-Hanafiyya and his descendants, particularly his son Abu Hashim. After the death of Ibn al-Hanafiyya in 700–701, some Kaysanites declared that he was the Mahdi, the eschatological Islamic leader who would reappear in the End Times and eradicate injustice and evil alongside Isa (Jesus). The Kaysanites later provided the organizational structure for the Abbasids to overthrow the Umayyads in 750.
Birth
Often known by his sobriquet 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 prophet Muhammad. Ali is also recognized as the fourth Rashidun caliph (r. 656–661) and the first Shia imam. Ibn al-Hanafiyya was either born in 16 AH (637–638 CE), or circa 633. He was the only child of Khawla, a freed slave, whom Ali had married sometime after the death of his first wife Fatima, daughter of Muhammad.
Begin with the source’s own compact description: “Muhammad ibn al-Hanafiyya” is alid political and religious leader (c.637-700). The dossier treats that line as a proposition to test through Muhammad, al-Hanafiyya and Alid, not as a finished interpretation.
Why this record matters
The phrase “alid political and religious leader (c.637-700)” supplies a clear boundary for inquiry. It also exposes the unanswered questions: who defined that boundary, when it became stable and which sources sit outside it.
Vocabulary and entity names are the principal evidence signals here, because they determine the precision of every later search. The source revision retrieved here is dated Sep 20, 2026. The linked authority identifier is Q939884. VIAF identifies the subject as 32857439. The Library of Congress control number is n85271594. 2 of 3 selected statements include explicit references; 1 carry qualifiers and 0 use preferred rank.
A concise general-reference account can conceal disagreements about scope, terminology or the weight assigned to individual sources. The lead is largely declarative, so disagreement and counter-evidence require a deliberate search beyond the opening account. Authority statements aid reconciliation but still require their own references, qualifiers and ranks to be checked.
How to read it
Use the entry as an orientation point, then follow its citations and revision history. Names, dates and institutional relationships should be checked against the original record.
- Subject orientation
- Search vocabulary
- Locating named sources
The closest primary source, responsible institution and strongest cited specialist reference.
Three-step research path
- Establish the record: confirm the title “Muhammad ibn al-Hanafiyya”, its source revision and the description used here.
- Expand the search: follow Muhammad ibn al-Hanafiyya primary sources, Muhammad ibn al-Hanafiyya archive and Muhammad research across catalogues and specialist indexes.
- Test the account: compare the strongest cited source with the responsible institution’s current record and note any disagreement.
Questions for further research
- Which source most directly establishes the central claim about “Muhammad ibn al-Hanafiyya”?
- Which institution is responsible for the underlying evidence?
- Which cited source is closest to the event, object or claim?
Search terms from this dossier
This entry incorporates text from “Muhammad ibn al-Hanafiyya” on English Wikipedia. Contributors are listed in the page history. Text is available under the Creative Commons Attribution-ShareAlike 4.0 License. Selected authority identifiers and statements are retrieved from Wikidata under CC0; their references and qualifiers remain part of the verification path.