كان حافظا متقنا عالما، ذا حظ وافر في الأدب، سمع بالأندلس من جماعة منهم أبو زكريا يحيى بن مالك بن عائذ. ومحمد بن أحمد بن يحيى بن مفرج القاضي، ومحمد بن يحيى بن العزيز المعروف بابن الخراز، ومحمد بن محمد بن أبي دليم وأبو أيوب سليمان بن أيوب وأبو عبد الله محمد بن أحمد بن مسعود وبأفريقية من أبي محمد عبد الله بن عبد الرحمن النفزي المعروف بابن أبي زيد وأبي الحسن علي بن محمد بن خلف، المعروف بالقابسي، وبمصر من أبي بكر أحمد بن محمد بن إسماعيل المهندس، وأبي محمد بن الضراب، وبمكة من أبي يعقوب يوسف بن أحمد بن يوسف بن الدخيل الصيدلاني المكي، وسمع أيضا من أبي عبد الله أحمد بن عمر بن الزجاج القاضي وغيره، وله "تاريخ العلماء الرواة للعلم بالأندلس"، وكتاب كبير في المؤتلف والمختلف أخبرنا عنه غير واحد عن ابن موهب عن أبي عمر بن عبد البر، وعن شريح عن أبي محمد بن حزم. ومات مقتولا في الفتنة أيام دخول البربر قرطبة سنة أربعمائة أخبرني أبو محمد بن حزم، ومات مقتولا في الفتنة أيام دخول البربر قرطبة سنة أربعمائة أخبرني أبو محمد بن حزم، قال أخبرنا أبو الوليد بن الفرضي، قال: تعلقت بأستار الكعبة، وسألت الله الشهادة، ثم انحرفت وفكرت في هول القتل، فندمت وهممت أن أرجع فأستقيل الله ذلك فاستحييت، قال أبو محمد: فأخبرني من رآه بين القتلى ودنا منه فسمعه يقول بصوت ضعيف وهو في آخر رمق: "لا يكلم أحد من سبيل الله والله أعلم بمن يكلم في سبيله، إلا جاء يوم القيامة، وجرحه يثغب دما، اللون لون الدم، والريح ريح المسك". كأنه يعيد على نفسه الحديث الوارد في ذلك، قال: ثم قضى نحبه على أثر ذلك، وهذا الحديث خرجه مسلم عن عمرو الناقد وزهير بن حرب عن سفيان عن أبي الزناد عن الأعرج عن أبي هريرة مسندا عن النبي (صلى الله عليه وآله وسلم) ، حدث عنه أبو عمر بتاريخه في العلماء والرواة للعلم بالأندلس،
He was a hafiz, exact and learned, with an ample share in letters. In al-Andalus he heard from a group, among them Abu Zakariyya Yahya ibn Malik ibn ʿAʾidh, Muhammad ibn Ahmad ibn Yahya ibn Mufarrij the judge, Muhammad ibn Yahya ibn al-ʿAziz [?] known as Ibn al-Kharraz, Muhammad ibn Muhammad ibn Abi Dulaym, Abu Ayyub Sulayman ibn Ayyub and Abu ʿAbd Allah Muhammad ibn Ahmad ibn Masʿud; in Ifriqiya from Abu Muhammad ʿAbd Allah ibn ʿAbd al-Rahman al-Nafzi known as Ibn Abi Zayd, and Abu l-Hasan ʿAli ibn Muhammad ibn Khalaf known as al-Qabisi; in Egypt from Abu Bakr Ahmad ibn Muhammad ibn Ismaʿil al-Muhandis and Abu Muhammad ibn al-Darrab; and in Mecca from Abu Yaʿqub Yusuf ibn Ahmad ibn Yusuf ibn al-Dakhil al-Saydalani al-Makki. He also heard from Abu ʿAbd Allah Ahmad ibn ʿUmar ibn al-Zajjaj the judge, and others. He wrote “Tarikh al-ʿulamaʾ al-ruwat li-l-ʿilm bi-l-Andalus” (the History of the scholars who transmitted knowledge in al-Andalus), and a large book on al-Muʾtalif wa-l-mukhtalif. More than one person informed us of it from him, from Ibn Mawhab, from Abu ʿUmar ibn ʿAbd al-Barr, and from Shurayh, from Abu Muhammad ibn Hazm. He died slain in the civil strife (fitna), in the days when the Berbers entered Qurtuba, in the year 400. Abu Muhammad ibn Hazm informed me, — He died slain in the civil strife, in the days when the Berbers entered Qurtuba, in the year 400. Abu Muhammad ibn Hazm informed me; he said: Abu l-Walid ibn al-Faradi informed us; he said: I clung to the curtains of the Kaʿba and asked God for martyrdom; then I turned away and thought of the horror of being killed, and I regretted it, and was about to go back and ask God to release me from it, but I felt ashamed. Abu Muhammad said: Someone who saw him among the slain and came close to him told me that he heard him saying in a faint voice, at his last breath: “No one is wounded in the path of God — and God knows best who is wounded in His path — but he comes on the Day of Resurrection with his wound gushing blood: the colour is the colour of blood, and the scent is the scent of musk.” It was as though he were repeating to himself the hadith that has come down about that. He said: Then he breathed his last right after that. This hadith was recorded by Muslim from ʿAmr al-Naqid and Zuhayr ibn Harb, from Sufyan, from Abu l-Zinad, from al-Aʿraj, from Abu Hurayra, with its chain going back to the Prophet (God bless him and his family and grant him peace). Abu ʿUmar related from him his History of the scholars and transmitters of knowledge in al-Andalus,