Muhammad ibn al-Hanafiyyah
After Muhammad ibn al-Hanafiyya died, his son Abu Hashim claimed the imamate. After his death the Abbasids claimed that on his deathbed Abu Hashim nominated his distant cousin Muhammad ibn Ali ibn Abdullah ibn Abbas ibn Abdu'l-Muttalib ibn Hashim as the imam. This man's 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.