ولي قضاء مالقة نائبا عن أبي عبد الله بن الحسن مدة، ثم وليه مستبدا بتقديم الأمير أبي عبد الله بن نصر يوم السبت لليلتين بقيتا من رمضان خمس وثلاثين وست مئة، فأشفق من ذلك وامتنع منه، وخاطبه مستعفيا، وذكر أنه لا يصلح للقيام بما قلده من تلك الخطة تورعا منه، فلم يسعفه، فتقلدها وسار فيها أحسن سيرة، وأظهر الحقوق التي كان الباطل قد غمرها، ونفذ الأحكام، وكان ماضي العزيمة مقداما مهيبا جزلا في قضائه، لا تأخذه في الله لومة لائم، واستمر على ذلك بقية عمره.
He held the judgeship of Malaga as deputy for Abu ʿAbd Allah ibn al-Hasan for a time, then held it on his own authority by appointment of the emir Abu ʿAbd Allah ibn Nasr on Saturday, two nights before the end of Ramadan 635. He was apprehensive of it and refused it, and wrote to him asking to be relieved, stating out of scrupulousness that he was not fit to discharge the office with which he had been invested; but he did not grant his request, so he took it up and conducted himself in it in the finest way. He brought to light rights which falsehood had submerged and enforced the rulings; he was resolute, bold, awe-inspiring and firm in his judgeship, and the blame of no blamer held him back where God was concerned; he continued so for the rest of his life.
وصنف كتبا كثيرة (1) أفاد بها، منها: "المشرع الروي في الزيادة على غريبي الهروي"، ومنها: "أربعون حديثا" التزم فيها موافقة اسم شيخه اسم الصحابي، وما أراه سبق إلى ذلك، وهو شاهد بكثرة شيوخه وسعة روايته، ومنها: "نزهة الناظر في مناقب عمار بن ياسر"، ومنها: "الجزء المختصر في السلو عن ذهاب البصر" ألفه لصاحبنا أبي محمد بن أبي خرص الضرير الواعظ رحمه الله، ومنها: "رسالة ادخار الصبر في افتخار القصر والقبر"، ومنها: "الإكمال والإتمام في صلة الإعلام بمحاسن الأعلام من أهل مالقة الكرام" تأليف أبي [العباس أصبغ بن علي بن هشام بن أصبغ بن عبد الله] (2) بن أبي العباس، واخترمته المنية عن إتمامه، فتولى كماله ابن أخته أبو بكر بن محمد بن خميس المذكور، ولهذا الكتاب اسم آخر وهو: "مطلع الأنوار ونزهة البصائر والأبصار، فيما احتوت عليه مالقة من الأعلام والرؤساء والأخيار، وتقييد ما لهم من المناقب والآثار" (3).
He wrote many books (1) by which he was of benefit, among them: "al-Mashraʿ al-rawi fi l-ziyada ʿala gharibay al-Harawi"; "Arbaʿun hadithan", in which he kept to having the name of his teacher match the name of the Companion — I do not think anyone preceded him in that, and it bears witness to the number of his teachers and the breadth of his transmission; "Nuzhat al-nazir fi manaqib ʿAmmar ibn Yasir"; "al-Juzʾ al-mukhtasar fi l-suluw ʿan dhahab al-basar", which he composed for our companion Abu Muhammad ibn Abi Khars, the blind preacher, God have mercy on him; "Risalat iddikhar al-sabr fi iftikhar al-qasr wa-l-qabr"; and "al-Ikmal wa-l-itmam fi silat al-iʿlam bi-mahasin al-aʿlam min ahl Malaqa al-kiram", the work of Abu [al-ʿAbbas Asbagh ibn ʿAli ibn Hisham ibn Asbagh ibn ʿAbd Allah] (2) ibn Abi l-ʿAbbas; death cut him off from completing it, and his sister's son, Abu Bakr ibn Muhammad ibn Khamis, mentioned above, undertook its completion. This book has another name, namely: "Matlaʿ al-anwar wa-nuzhat al-basaʾir wa-l-absar, fi-ma ihtawat ʿalayhi Malaqa min al-aʿlam wa-l-ruʾasaʾ wa-l-akhyar, wa-taqyid ma lahum min al-manaqib wa-l-athar" (3).
ومن نظمه وقد استدعيت منه إجازة [الطويل]:
And of his verse, when a licence was requested of him [al-tawil]:
أجبتك لا أني لما رمته أهل ... ولكن ما أحببت محتمل سهل
I have answered you, not that I am worthy of what you sought ... but what you love is bearable and easy.
وكيف أراني أهل ذاك وقد أتى ... علي المميتان: البطالة والجهل؟!
How should I think myself worthy of that, when there have come ... upon me the two deadly things: idleness and ignorance?!
وما العلم إلا البحر طاب مذاقه ... ومالي عل في الورود ولا نهل
Knowledge is nothing but the sea whose taste is sweet ... and I have neither second draught nor first in coming down to it.
فنسأل ربي العفو عني فإنه ... لما يرتجيه العبد من فضله أهل
So we ask my Lord for pardon for me, for He ... is worthy of what the servant hopes for from His bounty.
والأبيات لزومية.
The verses are luzumiyya.