Hamdanid dynasty
For a time, al-Khaṣībī was imprisoned in Baghdad, due to accusations of being a Qarmatian. According to the Alawites, after settling in Aleppo, under the rule of the Shia Hamdanid dynasty, he gained the support and aid of its ruler, Sayf al-Dawla, in spreading his teachings. He later dedicated his book "Kitab al‐Hidaya al‐Kubra" to his patron. He died in Aleppo and his tomb, which became a holy shrine, is inscribed with the name Shaykh Yabraq.