واستقضاه أبو محمد عبد المنعم بن سمجون على باغه أيام قضائه بغرناطة، ثم صحبه إذ استقضي بإشبيلتة فاستقضاه ببعض المدن الغربية ولازمه مدة، ثم عاد إلى شرق الأندلس فتعرف به أبو زكريا بن غانية وجل عنده وحظي لديه، وقدمه ببلنسية إلى خطة الشورى فكان بها رأس المشاورين وإليه كانت ترد صعاب المسائل ومشكلاتها، ثم استقضاه بمرسية وأعمالها في أواخر تسع وعشرين فبقي قاضيا لهم بها إلى انقراض دولة أهله اللمتونيين منها في أواخر تسع وثلاثين وخمس مئة، فصرف أجمل صرف، واستقر بشاطبة يدرس الفقة ويسمع الحديث، وعليه كان مدار المناظرة لغزارة حفظه وتمكن معرفته وتفننه في العلوم وإيراده الأخبار والنوادر. وكان يكاتب الإمام أبا القاسم ابن ورد في ما عسى أن يشكل عليه من نوازل الأحكام فيجيبه أبو القاسم، وجمع من ذلك ومن أجوبة أبي الوليد بن رشد "ديوانا" مفيدا؛ وكانت بينه وبين أبي جعفر بن أبي جعفر وحشة أيام استقضاء أبي محمد بمرسية، فلما ثار أبو جعفر بها أرسل فيه، فظن بعض حسدته أنه إنما بعث ليناله بمكروه، فلما دخل عليه قام له بإكرام حفيل وبر واسع، ولاطفه أجمل ملاطفة وندبه إلى الدخول معه
Abu Muhammad ʿAbd al-Munʿim ibn Samajun made him qadi of Bagha in the days of his own judgeship in Gharnata; then he accompanied him when he was made qadi in Ishbiliya [?], and he made him qadi in some of the western towns, and he stayed with him for a time. Then he returned to the east of al-Andalus, and Abu Zakariyyaʾ ibn Ghaniya came to know him; he was held in great esteem by him and enjoyed his favour, and he advanced him in Balansiya to the office of consultation (al-shura), where he was the head of the counsellors, and to him the difficult and problematic questions were referred. Then he made him qadi in Mursiya and its districts at the end of the year twenty-nine, and he remained their qadi there until the end of the rule of his people, the Lamtunis, there at the end of 539; then he was dismissed in the finest manner, and settled in Shatiba, teaching fiqh and transmitting hadith; and around him disputation revolved, because of the abundance of his memory, the firmness of his knowledge, his versatility in the sciences, and his citing of reports and rare anecdotes. He used to write to the imam Abu l-Qasim Ibn Ward about whatever cases for judgement might be difficult for him, and Abu l-Qasim would answer him; and from that and from the answers of Abu l-Walid ibn Rushd he compiled a useful "Diwan". There was estrangement between him and Abu Jaʿfar ibn Abi Jaʿfar in the days when Abu Muhammad was qadi in Mursiya; when Abu Jaʿfar rose in revolt there he sent for him, and some of those who envied him thought that he had sent for him only to do him harm; but when he came in to him he rose for him with lavish honour and great kindness, treated him with the finest courtesy, and invited him to join him
في ما دخل فيه فامتنع أبو محمد من ذلك. وكان يحدث أنه ألفى طلبة العلم عند أبي جعفر هذا متقلدي السيوف قد صاروا حشما وخدما، وقعد أبو محمد في تلك الفتن كلها عاكفا على العلم مفيدا ومستفيدا مقبلا على ما [28 ظ] يعنيه، ناظرا في أسباب معيشته، إلى أن لحق بربه.
in what he had entered upon; but Abu Muhammad refused that. He used to tell that he found the students of learning with this Abu Jaʿfar girded with swords, having become retainers and servants. Through all those strifes Abu Muhammad stayed at home, devoted to learning, teaching and learning, intent on what [28b] concerned him, attending to the means of his livelihood, until he joined his Lord.
وكان خيرا فاضلا، ذا ورد من الليل، فكان دأبه متى أشكل عليه شيء من متشابه القرآن تلاوة جعل بعض تلامذته يقرأ عليه السورة المتضمنة ما أشكل عليه ولا يعين له موضع الإشكال، ولا يعرف القارئ مراده من تعيين تلك السورة؛ ليثبت يقينه ويقوي سكونه ويرسخ حفظه. وكف بصره.
He was good and virtuous, with a portion of prayer at night (wird). It was his habit, whenever something of the ambiguous passages (mutashabih) of the Qurʾan became uncertain to him in recitation, to have one of his pupils recite to him the sura containing what had become uncertain to him, without indicating to him the place of the difficulty, and without the reciter knowing his purpose in naming that sura; so that his certainty might be confirmed, his assurance strengthened and his memory made firm. He lost his sight.
وتوفي بشاطبة سنة سبع وستين وخمس مئة، ومولده بيناشته سنة أربع، وقيل: ست وثمانين وأربع مئة.
He died in Shatiba in the year 567. His birth was in Yanashta in the year 484, or, it is said, 486.