A fair amount of the work he was noted for was written while he was in Morocco, including his biography of Muhammad Abd al-Karim al-Maghili, a scholar and jurist responsible for much of the traditional religious law of the area.
En stor del av hans verk skapades medan han befann sig i Marocko, bland annat hans biografi av Muhammad Abd al-Karim al-Maghili, en vetenskapsman och jurist ansvarig för mycket av den traditionella religiösa lagen i området.