تنبيه: قد علمت مما تقدم ما كان عليه ملوك بني الأغلب ومن قبلهم من المحافظة على الدين وعلى ما وقع فتحه والاشتغال بجمع العساكر والفتوحات وتمهيد الراحة وجاء بعدهم الفاطميون بنو عبيد وكان اشتغالهم بالحروب وبث الدعوة في الأفكار والزيادة في المملكة وعمالهم ملوك صنهاجة مثلهم. وقانون الملك الإسلامي هو القرآن العظيم وأقوال رسوله الكريم عليه أفضل الصلاة والتسليم، وكان لهم وللمعز الآتي ذكره إلى آخر دولته التفات واهتمام بأهل العلم والأدباء بالصلات المتوالية ومجالستهم مع التعظيم والإجلال والتكريم ومكاتبتهم، فقد كان باديس يكاتب أبا محفوظ محرز وكذلك ابنه المعز وكان يبعث المال والكتب للعماء وقد سبقت الإشارة إلى ذلك في ترجمة أبي بكر عتيق السوسي، وفي مدتهم كان سوف العلم نافقا بالغا الغاية والعلماء الفحول والأدباء والحكماء والمهندسون كثيرون جدا، كان أبو الطيب ابن بنت خلدون من علماء الحساب والهندسة دبر سوق خليج من ساحل البحر إلى القيروان والحكاية مشروحة في المقصد عند التعرض لترجمته، وكان للعلماء يد وإعانة في سياسة الملك من ذلك
Note: You have learned from what preceded how the kings of the Banu l-Aghlab and those before them guarded the religion and what had been conquered, and occupied themselves with gathering armies, with conquests and with securing ease. After them came the Fatimids, the Banu ʿUbayd; their occupation was with wars, with spreading the summons in people's minds and with enlarging the kingdom, and their governors, the kings of Sanhaja, were like them. The law of Islamic kingship is the mighty Qurʾan and the sayings of His noble Messenger, upon him the best of blessing and peace. They, and al-Muʿizz mentioned below until the end of his reign, paid attention and care to the men of learning and the men of letters, with continuous gifts, with sitting with them in veneration, honour and esteem, and with corresponding with them: Badis used to correspond with Abu Mahfuz Muhriz, and so did his son al-Muʿizz, who used to send money and books to the scholars; reference to that has already been made in the biography of Abu Bakr ʿAtiq al-Susi. In their time the market [?] of learning was flourishing, reaching the utmost, and the great scholars, men of letters, sages and engineers were very many. Abu l-Tayyib, son of the daughter of Khaldun, was one of the scholars of arithmetic and geometry; he planned the conducting of a canal from the sea coast to al-Qayrawan, and the story is explained in the Maqsad where his biography is treated. The scholars had a hand and a share of help in the policy of the kingdom, among which was
أمرهم بالمعروف ونهيهم عن المنكر على نحو ما جاء به الشرع العزيز، ولذا كان الملوك يلاقون من شدة العلماء عليهم ما يتجرعون مرارته كسحنون وسعدون الخولاني وربيع القطان وأبي محفوظ محرز بن خلف. وسترى قريبا الخبر عن القيروان بما فيه عبرة لذوي الفضل والشأن.
their commanding right and forbidding wrong in the way the mighty Law brought it. Therefore the kings met from the severity of the scholars towards them what they swallowed in bitterness, as with Sahnun, Saʿdun al-Khawlani, Rabiʿ al-Qattan and Abu Mahfuz Muhriz ibn Khalaf. You will see shortly the report about al-Qayrawan, in which there is a lesson for people of merit and standing.