محمد بن أحمد بن خلف بن إبراهيم بن لب بن بيطير التجيبي، يعرف: بابن الحاج. قاضي الجماعة بقرطبة؛ يكنى: أبا عبد الله.
Muhammad ibn Ahmad ibn Khalaf ibn Ibrahim ibn Lubb ibn Baytir al-Tujibi, known as Ibn al-Hajj, chief qadi in Qurtuba; his kunya was Abu ʿAbd Allah.
روى عن أبي جعفر أحمد بن رزق الفقيه وتفقه عنده، وقيد الغريب واللغة والأدب على أبي مروان عبد الملك ابن سراج. وسمع من أبي عبد الله محمد بن فرج الفقيه، ومن أبي علي الغساني وأكثر عنه. وأبي القاسم خلف بن مدير الخطيب وخازم بن محمد، وأبي الحسن العبسي، وأبي الحسن بن الخشاب البغدادي وغيرهم. وكان من جلة الفقهاء وكبار العلماء معدودا في المحدثين والأدباء، بصيرا بالفتيا، رأسا في الشورى. وكانت الفتوى في وقته تدور عليه لمعرفته وثقته وديانته.
He transmitted from Abu Jaʿfar Ahmad ibn Rizq the jurist and studied fiqh with him, and he recorded rare vocabulary (al-gharib), lexicography and adab from Abu Marwan ʿAbd al-Malik ibn Siraj. He heard from Abu ʿAbd Allah Muhammad ibn Faraj the jurist, and from Abu ʿAli al-Ghassani, from whom he transmitted much; and from Abu l-Qasim Khalaf ibn Mudir the preacher, Khazim ibn Muhammad, Abu l-Hasan al-ʿAbsi, Abu l-Hasan ibn al-Khashshab al-Baghdadi and others. He was one of the eminent jurists and great scholars, counted among the hadith scholars and the men of letters, discerning in fatwas, a head in the council (al-shura). The fatwa in his time revolved around him because of his knowledge, trustworthiness and religiosity.
وكان معتنيا بالحديث والآثار، جامعا لها، مقيدا لما أشكل من معانيها، ضابطا لأسماء رجالها ورواتها، ذاكرا للغريب والأنساب واللغة والإعراب، وعالما بمعاني الأشعار والسير والأخبار، قيد العلم عمره كله، وعني به عناية كاملة ما أعلم أحدا في وقته عني به كعنايته قرأت عليه وسمعت، وأجاز لي بخطه. وكان له مجلس بالمسجد الجامع بقرطبة يسمع الناس فيه. وتقلد القضاء بقرطبة مرتين، وكان في ذاته لينا، صابرا، طاهرا، حليما، متواضعا، لم يحفظ له جور في قضية، ولا ميل بهوادة، ولا أصغى إلى عناية. وكان كثير الخشوع والذكر لله تعالى، ولم يزل آخر مدته يتولى القضاء بقرطبة إلى أن قتل ظلما بالمسجد الجامع بقرطبة يقوم الجمعة وهو ساجد لأربع بقين من صفر سنة تسع وعشرين وخمس مائة. ودفن عشي يوم السبت بمقبرة أم سلمة وصلى عليه ابنه أبو القاسم وشهده جمع عظيم من الناس وأتبعوه ثناء حسنا ومولده في صفر سنة ثمان وخمسين وأربع مائة.
He was devoted to hadith and traditions, collecting them, annotating what was obscure in their meanings, exact on the names of their men and transmitters, mindful of rare vocabulary, genealogies, lexicography and grammatical analysis, and learned in the meanings of poems, in the biographies and in historical reports. He recorded knowledge all his life and devoted complete care to it; I know no one in his time who devoted himself to it as he did. I read with him and heard from him, and he gave me a licence in his own hand. He had a session in the congregational mosque of Qurtuba in which people heard from him. He was invested with the judgeship in Qurtuba twice. In himself he was gentle, patient, pure, forbearing and humble; no injustice in any case was recorded against him, nor any leaning through indulgence, nor did he lend his ear to any favour-seeking. He was much given to humility and to remembrance of God Most High. At the end of his life he continued to hold the judgeship in Qurtuba until he was killed unjustly in the congregational mosque of Qurtuba on the day [?] of Friday while prostrating, with four remaining of Safar of the year 529. He was buried in the evening of Saturday in the cemetery of Umm Salama; his son Abu l-Qasim prayed over him, and a huge gathering of people attended him and followed him with good praise. He was born in Safar of the year 458.