على ملكه. لكونه ابن عمه. فرأى إماتة اسمه، وعزله. ورد سليمان بن عمران. فلما شاخ سليمان بن عمران، عزله، وولي مكانه ثانية. قال ابن حارث: كان ابراهيم بن الأغلب، أكره الناس في ابن طالب. وكان قد أساء إليه، أيام قضائه، الأول. وإمارة أخيه ابراهيم المعروف بأبي الغرانيق. فلما ولي ابراهيم بعده، هم به. وكان الحضرمي، وبلاغ مولى ابراهيم خاصين به، ولهما بابن طالب عناية. فكانا يكفانه عنه. فلما شاخ سليمان بن عمران، واضطر ابراهيم، الى قاض غيره، جمع وجوه القيروان، وشاورهم فيمن يوليه. فطرحوا الاختيار إليه، وغلبته الشهوة في محمد بن عبدون، وأمر له بمركب فأمر بأن يخرج ابن عبدون عليه، الى أن دخل أحمد بن أبي سليمان، فسأله الأمير، فقال: أرى أن نولي العدل الرضي المستحق للقضاء. فقال: من هو؟ قال: ابن طالب. فاستوى جالسا، وقد كان ابن غافق أشار بمثله، قبله. وقال: ما أرى لها إلا ابن طالب. فقال له: ابن أبي سليمان: إن الصلاة عمود الدين. فلما استحق عند الأمير أن يقدم عليها، كان بما هو أقل منها أولى. فقال ابراهيم: يرد الفرس. وأذن لابن أبي سليمان في الانصراف، ووجه لابن طالب، فولاه القضاء.
for his rule, since he was his cousin. So he decided to extinguish his name, and dismissed him, and brought back Sulayman ibn ʿImran. When Sulayman ibn ʿImran grew old, he dismissed him, and he was appointed in his place a second time. Ibn Harith said: Ibrahim ibn al-Aghlab was the most averse of people to Ibn Talib. He had done him harm in the days of his first judgeship and the emirate of his brother Ibrahim, known as Abu l-Gharaniq. When Ibrahim ruled after him, he meant to strike at him. But al-Hadrami and Balagh, Ibrahim's client, were his intimates, and they had concern for Ibn Talib, and they kept him off him. When Sulayman ibn ʿImran grew old and Ibrahim needed another judge, he gathered the notables of al-Qayrawan and consulted them about whom he should appoint. They left the choice to him, and his desire prevailed for Muhammad ibn ʿAbdun; he ordered a mount for him, ordering that Ibn ʿAbdun ride out on it; until Ahmad ibn Abi Sulayman came in, and the emir asked him, and he said: I think we should appoint the upright, approved man who is worthy of the judgeship. He said: Who is he? He said: Ibn Talib. He sat up straight. Ibn Ghafiq had suggested the like of it before him, and had said: I see no one for it but Ibn Talib. Ibn Abi Sulayman said to him: The prayer is the pillar of religion. Since in the emir's view he deserved to be put in charge of it, he is more fitting for what is less than it. Ibrahim said: Let the horse be brought back. He gave Ibn Abi Sulayman leave to depart, and sent for Ibn Talib and appointed him to the judgeship.