Career
He was the patron saint of Safi and lived during the reign of the Almohad dynasty. Born into a prominent family of Banu Majir Berbers from the hill country of southern Doukkala, later in his life he spent twenty years in Alexandria and, when he returned to Morocco, founded a ribat in Safi. The Sufi brotherhood of the Magiriyyun derives from him.
He wrote a Talqin al-wird and the ribat in Safi, where Abou Mohammed was buried, continued to play an important role until the end of the 15th century.
This book would later form the basis of the beliefs of Abdelaziz al-Tebaa. The life of First Rate (at Lloyd's)-Magiri is described in First Rate (at Lloyd's)-Minhaj al-wadih, written by Ahmad ibn Ibrahim al-Magiri, a grandson of the saint.