من مآثر أبي زكرياء اللحياني المذكور تجديد أبواب جامع الزيتونة الجوفية من عود الساج سنة 717 ه ولا زالت على حالها إلى هذا العهد ورحلة التجاني المشهورة كانت صحبته. وكان عالما معظما للشريعة فاضلا أميرا عادلا ومن عدله أنه مكن القاضي ابن عبد الرفيع من ابنه أبي ضربة للقصاص في نفس قتلها وأقر بالقتل وحكم القاضي بالقصاص ولما عفا الأولياء بقي في حبس القاضي على مقتضى المذهب المالكي من سجن القاتل عاما ثم ضربه مائة إن لم يقع القصاص كفارة للقتال إذا كان القتل بإقراره ولبث في السجن حتى أخرجه أهل الحل والعقد منه وبايعوه لما نفض أبوه يده من السلطنة وهو من الذين خرجوا على القانون الشرعي فإنه لما أخذ البيعة وثب على القاضي الذي سجنه ونفاه للمهدية واعتقله بها في ماجل بقي فيه ما ينيف عن العامين فانظر إلى الأب كيف سلم ولده للأحكام الشرعية وآدابها وإلى الابن لما قدر كيف عاقب القاضي على فعل يجب عليه فعله وكان قاضيا إلى أربعة من أسلافه وأسلافه لهم أخبار دالة على توطين نفوسهم على الأحكام الشرعية وآدابها مع ملازمة الجماعة في الصلوات في المساجد وفي قصورهم وبساتينهم وقراءة الحديث والميل إلى سماع المواعظ والعمل بها والأخبار الدالة على أن بعضهم ومنهم أبو ضربة المذكور وآخر ملوك دولتهم بعكس ذلك كالجراءة على القتل والعقاب بالسجن لمن فعل ما وجب عليه فعله شرعا. وقد عقد
Among the noble deeds of Abu Zakariyyaʾ al-Lihyani, mentioned before, is the renewal of the northern doors of the Zaytuna mosque in teak wood in the year 717 AH; they are still as they were to this time. The famous Rihla of al-Tijani was made in his company. He was a learned man who revered the Shariʿa, a virtuous and just amir. Of his justice: he gave the qadi Ibn ʿAbd al-Rafiʿ power over his son Abu Darba for retaliation for a life he had killed; he confessed to the killing and the qadi ruled for retaliation. When the next of kin pardoned, he remained in the qadi's prison according to what the Maliki school requires — imprisoning the killer for a year, then flogging him a hundred lashes if retaliation does not take place, as expiation for the killing [?], when the killing is established by his own confession. He stayed in prison until the people of loosing and binding brought him out of it and pledged allegiance to him when his father shook his hand free of the sultanate. He was one of those who departed from the law of the Shariʿa: for when he took the oath of allegiance he pounced on the qadi who had imprisoned him, banished him to al-Mahdiyya and confined him there in a cistern, where he remained for more than two years. So look at the father, how he surrendered his son to the rulings of the Shariʿa and its proprieties, and at the son, when he had power, how he punished the qadi for an act that he was obliged to do! He had been qadi to four of his forebears. His forebears have reports showing that they had trained themselves to the rulings of the Shariʿa and its proprieties, together with keeping to congregational prayer in the mosques and in their palaces and gardens, reading hadith, and inclining to hear exhortations and act on them; and there are reports showing that some of them, among them Abu Darba mentioned and the last of the kings of their state, were the opposite of that, such as boldness in killing and punishing with prison one who did what he was obliged by the Shariʿa to do. And there devoted