
Abd Allah ibn Muhammad ibn al-Hanafiyyah

Abd-Allah ibn Muhammad ibn al-Hanafiyyah () (died 98 AH; 716 CE), also known as Abu Hashim was a member of the Banu Hashim clan of the Quraish tribe in Mecca. He was one of the Salaf and a Narrator of hadith. After Muhammad ibn al-Hanafiyya died, his son Abu Hashim claimed the imamate. According to medieval mystic Jami, Abd-Allah ibn Muhammad ibn al-Hanafiyyah (died c. 716) was the first person to be called a "Sufi".
Life.
After Abu Hashim's death, the Abbasids claimed that on his deathbed Abu Hashim had nominated his distant cousin Muhammad ibn Ali ibn Abdullah ibn Abbas ibn Abdu'l-Muttalib ibn Hashim as the imam. His son Abu'l-Abbas Abdullah as-Saffah became the first Abbasid caliph, repudiating Shi'ism, which effectively extinguished the sect that had recognized Muhammad ibn al-Hanafiyyah as an imam.
Abu Hashim's father was Muhammad ibn al Hanafiyyah ibn Ali, a son of Ali. Abu Hashim had a brother named Hasan.
After his father's death in 700 CE, the Hashimiyya sub-sect of the Kaysanites Shia looked to Abu Hashim as the heir of his grandfather Ali. After his own death, the early Abbasids claimed that Abu Hashim had designated Muhammad, father of the first two Abbasid caliphs, As-Saffah and Al-Mansur, as his heir and head of the clan of the Banu Hashim.
According to the Sunnis, Ibn Hajar al-Asqalani graded the two sons of Muhammad ibn al-Hanafiyyah to be weak in Hadith, arguing that one was a murji'i, and the other to be a Shi'ite.
On the other hand, Ibn Sa'd stated that "Abu Hashim has knowledge and transmission. He was reliable in Hadith, and had narrated a few accepted hadiths."