Hasan ibn Muhammad ibn al-Hanafiyya (Arabic: حسن بن محمد بن الحنفية) was a member of the Alid lineage, specifically a great-grandson of Ali ibn Abi Talib (the fourth Rashidun Caliph and first Shia Imam) through his son Muhammad ibn al-Hanafiyya.
Lineage and Family
- Father: Muhammad ibn al-Hanafiyya (d. c. 700 CE), a prominent son of Ali ibn Abi Talib by Khawla bint Ja'far al-Hanafiyya.
- Grandfather: Ali ibn Abi Talib.
- He had brothers, most notably Abu Hashim Abd Allah ibn Muhammad ibn al-Hanafiyya, who became the central figure of the Kaysaniyya Shia sect.
Historical Role Hasan is primarily known through genealogical records and historical chronicles (such as those by al-Tabari, Ibn Sa'd, and al-Baladhuri) as a transmitter of hadith and a notable Alid figure in the late 7th and early 8th centuries CE. He lived in Medina and later in the vicinity of Mecca.
Following the death of his brother Abu Hashim (c. 716–717 CE / 98–99 AH), who died without male heirs, the leadership claims of the Kaysaniyya (and subsequently the Abbasid da'wa) shifted. While Abu Hashim is recorded as having designated his cousin Muhammad ibn Ali ibn Abd Allah ibn Abbas (the father of the first two Abbasid caliphs) as his heir, Hasan ibn Muhammad represents the continuing line of Muhammad ibn al-Hanafiyya's direct descendants.
Death Historical sources generally place his death around 100 AH (718–719 CE) in Mecca or its vicinity.
Significance His significance lies mainly in his position within the Alid genealogy during the formative period of early Shia thought and the Abbasid movement. He is cited in isnads (chains of transmission) for several traditions attributed to his father and grandfather.