Salih ibn Tarif
Ṣāliḥ ibn Tarīf (Arabic: صالح بن طريف) was the second king of the Berghouata Berber kingdom, and proclaimed himself a prophet of a new religion. He appeared during the caliphate of Hisham ibn Abd al-Malik in 744 AD. His original Berber name is unknown.
According to Ibn Khaldun's sources, he claimed to have received a new revelation from God, with 80 chapters, some called after prophets, such as Adam, Noah, and others after other things, such as the Duck, the Camel, the Elephant, Harut and Marut, Iblis and "Chapter of the Wonders of the World"; they read these chapters in their prayers. He established laws for his people, and was called by them "Ṣāliḥ al-Mu'minin" (Restorer of the Believers.) This claimed revelation was written in the Berber language, and called a Qur'an.
He is also said to have claimed to be the final Mahdi, and that Isa (Jesus) would be his companion and pray behind him. He proclaimed that his name in Arabic was Ṣāliḥ, in Syriac Mālik, in "Ajami" ʻālim, in Hebrew Rūbyā, and in Berber Werba, and that after him would be no other prophet.
After reaching the age of 47 years, he headed east out of the kingdom, and promised to return in the reign of their seventh king. He told his son Ilyās to support the Umayyads of Andalus and publicly profess Islam, but to reveal his religion when he became powerful enough; the latter was done by his grandson Yūnus.
According to some sources, Ṣāliḥ ibn Tarīf regarded himself as a successor to Muhammad, had 10 Ṣahāba (disciples) and many wives, and claimed to be able to speak with the dead and heal the sick.
Other tenets that contrast with Islam include capital punishment for theft, unlimited number of wives a man allowed to have, unlimited number of divorces, fasting of the month of Rajab (7th month in lunar calendar) instead of Ramadan (9th month), ten obligatory daily prayers instead of five, differences in how to perform ablution, prayers, and the banning of marriage between cousins. The details of the tenets of Ṣāliḥ's religion are mentioned in many Arabic sources, such as Ibn Hazm, Ibn Khaldun and others.
In Islamic literature, his belief is considered heretical; politically, its motivation was presumably to establish their independence from the Umayyads (in a manner analogous to Kharijism, and earlier Donatism), establishing an independent ideology lending legitimacy to the state. Some modern Berber activists regard him as a hero for his resistance to Umayyad-Arab conquest and his foundation of the Berghouata state.
The religion promoted by Ṣāliḥ was destroyed in the 11th century by the Almoravids.