sentences:  He was known as "Shāh-e-Hamadān" ("King of Hamadān"), "Amīr-i Kabīr" ("the Great Commander"), and "Ali Sani" ("second Ali").The title "Sayyid" indicates that he was a descendant of Muhammad, possibly from both sides of his family.Hamadani spent his early years under the tutelage of Ala ud-Daula Simnani, a famous Kubrawiya saint from Semnan, Iran.