 By the time of the Abbasid Revolution in the year 750, Mahdi was already a known concept.Evidence shows that the first Abbasid caliph As-Saffah assumed the title of "the Mahdi" for himself.In Shia Islam, it seems likely that the attribution of messianic qualities to the Mahdi originated from two of the groups supporting al-Hanafiyyah