تقدم أن الناصر استخلف على إفريقية وزيره أبا محمد عبد الواحد ابن الشيخ أبي حفص الهنتاتي وهنتاتة من قبائل المصامدة وهم القائمون بدعوة المهدي والسابقون لها وكان قبوله الاستخلاف بعد تمنع وشروط شرطها عليه وفي له بها الناصر وذلك في شوال سنة 603 ه متروكان عالما ذكيا شجاعا عاقلا ومما يدل على ذكائه هو أنه دخل عليه يوما أبو محمد عبد السلام البرجيني وكان تحت جفوة منه فقال له: كيف حالك يا فقيه؟ فقال: في عبادة، فقال له الأمير عبد الواحد: تعوضها إن شاء الله بالشكر، وأراد البرجيني بقوله في عبادة قول رسول الله - صلى الله عليه وسلم -: "انتظار الفرج بالصبر عبادة" وله حروب طالت لم تهزم فيها له راية ولم يزل على ولايته في جلالة إلى أن توفي في تونس فاتحة سنة 618 ه وتقدم للولاية ولده أبو زيد عبد الرحمن ثم قدم المنتصر عمه إدريس واليا على إفريقية ومعه ابنه أبو زيد عبد الرحمن وله مع ابن غانية حروب وتوفي سنة 620ه وقام مقامه أبو زيد المذكور ولم يحسن السيرة ولما تولى الخلافة عبد الله العادل بن المنصور عزله وولى أبا محمد عبد الله بن عبد الواحد الحفصي على إفريقية فدخلها في شعبان من السنة ومعه أخواه أبو زكرياء وأبو إبراهيم ولم يزل حميد الحال إلى أن ثار عليه أخوه أبو زكرياء المذكور ووقعت بينهما حروب آلت باستيلاء أبي زكرياء على إفريقية واستقلاله بها وذلك سنة 625 ه ومهد دولة فخيمة لآل أبي حفص ورفع رايتهم كما ستعلم واستقام له الأمر بعد موت ابن غانية واستولى على الجزائر وتلمسان وغيرهما وخلع دولة بني عبد المؤمن لأسباب ذكروها واتسع نطاق سلطانه ووافته بيعة ملوك شرقي الأندلس وغربيها وأطاعته سجلماسة وسبتة وطنجة ومكناسة وخطب له بنو مرين وكان من العلماء العاملين والأمراء العادلين ختم على الشيخ الرعيني السوسي المستصفى وغيره من الكتب العالية وناظر في النحو ابن عصفور وكان معدودا من الأدباء الشعراء وله مآثر جيدة وهو الذي بني جامع القصبة والمدرسة الشماعية وجمع في خزائنه من الكتب ستة وثلاثين ألف مجلد وفي سنة 647ه تحرك للمغرب ومات في طريقه ودفن ببونة ثم نقل إلى قسنطينة وترك من الأولاد أربعة: محمد
It has been mentioned that al-Nasir appointed as his deputy over Ifriqiya his vizier Abu Muhammad ʿAbd al-Wahid, son of Shaykh Abu Hafs al-Hintati. Hintata is one of the tribes of the Masamida; they were the upholders of the Mahdi's summons and the first to join it. His acceptance of the deputyship came after reluctance and conditions that he laid down for him, which al-Nasir fulfilled for him; that was in Shawwal of the year 603 AH. He was [?] a scholar, intelligent, brave and wise. Among what shows his intelligence is that Abu Muhammad ʿAbd al-Salam al-Barjini came in to him one day while he was out of favour with him, and he said to him: “How are you, O jurist?” He said: “In worship.” The emir ʿAbd al-Wahid said to him: “May you exchange it, God willing, for thanksgiving.” By his saying “in worship” al-Barjini meant the saying of the Messenger of God, God bless him and grant him peace: “Waiting for relief with patience is worship.” He had long wars in which no banner of his was defeated. He remained in his governorship in majesty until he died in Tunis at the beginning of the year 618 AH. His son Abu Zayd ʿAbd al-Rahman came forward for the governorship; then al-Muntasir sent his uncle Idris as governor over Ifriqiya, and with him his son Abu Zayd ʿAbd al-Rahman. He had wars with Ibn Ghaniya, and he died in the year 620 AH; the said Abu Zayd took his place, and he did not conduct himself well. When ʿAbd Allah al-ʿAdil ibn al-Mansur took the caliphate, he dismissed him and appointed Abu Muhammad ʿAbd Allah ibn ʿAbd al-Wahid al-Hafsi over Ifriqiya. He entered it in Shaʿban of that year, with his two brothers Abu Zakariyyaʾ and Abu Ibrahim, and he remained in praiseworthy condition until his said brother Abu Zakariyyaʾ rose against him, and wars occurred between them that ended in Abu Zakariyyaʾ taking Ifriqiya and ruling it independently, in the year 625 AH. He laid the foundation of a magnificent dynasty for the family of Abu Hafs and raised their banner, as you will learn. His affair became settled after the death of Ibn Ghaniya; he took al-Jazaʾir, Tilimsan and other places, and threw off the dynasty of the Banu ʿAbd al-Muʾmin for reasons they have mentioned. The extent of his authority widened; the allegiance of the kings of the east and the west of al-Andalus reached him, Sijilmasa, Sabta, Tanja and Miknasa obeyed him, and the Banu Marin made the sermon in his name. He was one of the scholars who act on their knowledge and one of the just emirs; he completed with Shaykh al-Ruʿayni al-Susi the reading of al-Mustasfa and other high books, and debated in grammar with Ibn ʿUsfur. He was counted among the men of letters and poets, and he has fine monuments: it was he who built the mosque of the Qasba and the Shammaʿiyya madrasa, and he gathered in his libraries thirty-six thousand volumes. In the year 647 AH he set out for the Maghrib and died on his way; he was buried at Buna, then carried to Qusantina. He left four sons: Muhammad