Abu Muhammad Salih ibn Yansaran Said ibn Ghafiyyan ibn al-Haj Yahya al-Dukkali al-Majiri () (sometimes spelled al-Magiri), simply known as Abu Muhammad Salih (1155âÂÂ1234), was a Maghrebi saint and one of the successors of Abu Madyan. He was the patron saint of Safi and lived during the reign of the Almohad Caliphate.
Salih was born in 1155 in the town of Asfi (Safi). His family was a Berber family that settled in Asfi in the mid-11th century. They belonged to the Banu Hayy, a sub-clan of the Banu Nasr, a clan of the Banu Magir, a Southern Masmuda Berber tribe. He studied under Abu Abdallah Mohammed Amghar in Ribat Shakir. He left Asfi in to study in Alexandria, where he spent twenty years. In , he then founded a ribat in Safi (in present-day Morocco).