Al-Hakim bi-Amr Allah
According to legend, Masoud was a black slave belonging to the Fatimid Caliph Al-Hakim bi-Amr Allah.