Abu al-Wafa Ali Ibn Aqil ibn Ahmad al-Baghdadi;
(1040–1119) was an Islamic theologian from Baghdad, Iraq. He was trained in the tenets of the Hanbali school (madhab) for eleven years under scholars such as the Qadi Abu Ya’la. Despite this, Ibn Aqil was forced into hiding by the Hanbalis for frequenting the circles of groups who were at odds with the Hanbali tradition. In one of his reminiscences, he remarks that his Hanbali companions wanted him to abandon the company of certain scholars, and complains that it hindered him from acquiring useful knowledge. Among his works of jurisprudence that have survived are Wadih fi usul al-fiqh and (in part) Kitab al-funun, a work comprising 800 volumes.