وكان متحققا بعلم الكلام، متقدما في معرفة أصول الفقه حتى شهر [بالأصولي] وعني طويلا ب "مستصفى" الغزالي فأصلح مختله، وصحح معتله، وعلق عليه [تعليقات] أفاد بها، وتنوقلت عنه، وشهر بالعكوف على العلوم القديمة الفلسفية، وله حظ صالح من الفقه، وكان أول قدومه على مراكش يحضر كثيرا مجلس المنصور، من بني عبد المؤمن، فيعامل المنصور بضروب من الجفاء، لا يحتمل أخفها الأكفاء، حتى أثر ذلك عنده وأسره له في نفسه، وكان ذلك من أقوى الأسباب التي اقتضت عنده تعريضه للعن الناس إياه، ونصبه لبصاقهم في وجهه مع وسيلته في الارتسام بتلك الطريقة المشنوءة، [طريقة] أبي الوليد بن رشد الصغير، حسبما مر ذلك في رسمه (2)، وسأله المنصور حينئذ: هل نظر في العلم الذي نكب ابن رشد بسببه؟ فأقر بقراءته والأخذ فيه، مع تحققه مما عليه في ذلك، فكان اعترافه من الأسباب التي ألحقته بابن رشد في تلك الوقيعة الشنيعة، وتعجب المنصور والناس جميعا من إجابته المنصور بالحق عما سأله كائنا فيه ما كان، وظهر منه في هذه المحنة من الجلد وثبوت الجأش وقوة النفس ما قضى مشاهدوه منه العجب، ثم غرب إلى أغمات فأسكن بها، ولم يزل فيها حتى عفي عنه، واستقضي عقب العفو عنه ببجاية، وقد كان استقضي بها مرتين، وبمرسية، واستنيب بمراكش، وكان يقول حين استقضي ببجاية في المرة الأخيرة: والله ما تقلدتها رغبة فيها ولا تغبيطا بها، ولكن تسجيلا على مقلدها إياي بقبيح التناقض الذي لا يصدر عمن له مسكة عقل في تولية القضاء والفصل في الأحكام الشرعية بين الناس من صحت عنده زندقته واشتغاله بعلوم الأوائل! واستقر قاضيا بها مدة، صادعا بالحق، جزلا في أحكامه،
He was a master of the science of kalam and advanced in the knowledge of the principles of jurisprudence, so that he became known [as al-Usuli]. He devoted himself for a long time to al-Ghazali's "al-Mustasfa", setting right what was disordered in it and correcting what was faulty, and wrote [notes] on it by which he was of benefit and which were transmitted from him. He was known for devoting himself to the ancient philosophical sciences, and he had a good share of jurisprudence. When he first came to Marrakush he often attended the session of al-Mansur of the Banu ʿAbd al-Muʾmin, and treated al-Mansur with kinds of rudeness the lightest of which his equals would not bear, until it affected him and he kept it secretly against him. That was one of the strongest reasons that led him to expose him to the people's cursing and to set him up for their spitting in his face, together with his being connected with being enrolled in that hateful way, [the way] of Abu l-Walid ibn Rushd the younger, as has been told in his notice (2). Al-Mansur asked him then whether he had looked into the science on account of which Ibn Rushd had been disgraced, and he admitted reading it and engaging in it, although he was certain of what it would bring upon him; his admission was one of the reasons that joined him to Ibn Rushd in that shameful ordeal. Al-Mansur and all the people wondered at his answering al-Mansur truthfully about what he had asked him, whatever it might bring. In this trial he showed such endurance, steadiness of heart and strength of soul that those who witnessed it were filled with wonder. Then he was banished to Aghmat and made to reside there, and he remained there until he was pardoned. After his pardon he was appointed judge in Bijaya (he had been appointed judge there twice) and in Mursiya, and he was appointed deputy in Marrakush. When he was appointed judge in Bijaya the last time he used to say: "By God, I did not take it up out of desire for it or delight in it, but to record against the one who appointed me the ugly contradiction, which would not come from anyone with a grain of sense, of appointing to the judgeship and to deciding the rulings of the shariʿa between people a man whose zandaqa and occupation with the sciences of the ancients he holds to be proven!" He remained judge there for a time, proclaiming the truth, firm in his judgements,