Abu al-Qasim al-Hakim al-Samarqandi (Arabic: أبو القاسم الحكيم السمرقندي), was a Hanafi scholar, qadi (judge), and sage from Transoxania who studied Sufism in Balkh with . Some sources describe him as a student of al-Maturidi (d. 333/944-45) in fiqh and kalam. He was proficient in kalam and authored a Hanafi creedal statement that insists on the need for obedience to any duly appointed ruler. The creed criticizes the harsh asceticism of the Karramiyya and accepts traditional views of saintly marvels (karamat).