Abu al-Muzaffar Mansur ibn Muhammad al-Sam'ani (426–489 AH) was a scholar of Marw who moved from the Hanafi to the Shafi'i school and became the city's…