وولي قضاء سرقسطة وقام بالشورى بقرطبة حتى كان نظير بن أبي زيد بالقيروان على هديه - إلا أنه كان فيه ضجر شديد يخرجه أوقات الغيظ إلى غير صفته توفي رحمه الله يوم الخميس لإحدى عشرة ليلة بقيت من ذي الحجة سنة اثنين وتسعين وثلاثمائة. وكان جمعه مشهودا وأوصى أن يكفن في خمسة أثواب وكان آخر ما سمع منه حين احتضر: اللهم إنك قد وعدت الجزاء على المصيبة ولا مصيبة علي أعظم من نفسي فأحسن جزائي فيها يا أرحم الراحمين.
He was appointed judge of Saraqusta and took up the office of consultation (shura) in Qurtuba, until he was the counterpart in his way of Ibn Abi Zayd in al-Qayrawan – except that there was in him a severe irritability which at times of anger took him out of his character. He died, God have mercy on him, on Thursday, eleven nights remaining of Dhu al-Hijja of the year 392. His funeral was well attended. He gave instructions that he be shrouded in five garments. The last thing heard from him when he was dying was: O God, You have promised reward for affliction, and no affliction upon me is greater than my own self; so reward me well in it, O Most Merciful of the merciful.
وكان كثيرا ما يذكر الأربعمائة وما يكون فيها من الفتن ويدعو الله عز وجل أن يقبضه قبلها فأجاب الله دعاءه.
He often mentioned the year four hundred and the trials there would be in it, and prayed to God, Mighty and Majestic, to take him before it; and God answered his prayer.