قال أبو عبد الله بن رشيد: وذكر لي بعض تلامذته: أن سبب شهرته بالقرافي: أنه لما أراد الكاتب أن يثبت اسمه في بيت الدرس كان حينئذ غائبا فلم يعرف اسمه وكان إذا جاء للدرس يقبل من جهة القرافة فكتب: القرافي فجرت عليه هذه النسبة. وذكر بعضهم أن أصله من البهنسا.
Abu ʿAbd Allah ibn Rushayd said: One of his students told me that the reason he became known as al-Qarafi was that when the clerk wanted to enter his name in the register of the lecture hall, he was absent at the time, so his name was not known; and when he came to the lesson he used to come from the direction of al-Qarafa, so the clerk wrote: al-Qarafi, and this nisba stuck to him. Someone mentioned that his origin was from al-Bahnasa.
وتوفي رحمه الله بدير الطين في جمادى الآخرة عام أربعمائة وثمانين وستمائة ودفن بالقرافة.
He died, God have mercy on him, at Dayr al-Tin in Jumada al-Akhira of the year 684 [?], and was buried in al-Qarafa.
ويلين بياء مثناة من تحت مفتوحة ولام مشددة مكسورة وياء ساكنة مثناة من تحت ونون ساكنة والبهفشيمي بالباء الموحدة المفتوحة والهاء المجزومة والفاء المفتوحة والشين المعجمة المكسورة والياء المثناة من تحت الساكنة. ولم أقف على معنى هذه النسبة ولعلها قبيلة من قبائل صنهاجة. وكان القرافي رحمه الله كثيرا ما يتمثل بهذين البيتين:
Yallin is with a yaʾ with two dots below, with fatha; a doubled lam with kasra; a yaʾ with two dots below, with sukun; and a nun with sukun. Al-Bahfashimi is with the one-dotted baʾ with fatha, the haʾ with sukun, the faʾ with fatha, the dotted shin with kasra, and the yaʾ with two dots below, with sukun. I have not found the meaning of this nisba; perhaps it is one of the tribes of Sanhaja. Al-Qarafi, God have mercy on him, often quoted these two lines:
وإذا جلست إلى الرجال وأشرقت ... في جو باطنك العلوم الشرد
When you sit with men, and there shine ... in the sky of your inner self the rare, fugitive sciences,
فاحذر مناظرة الحسود فإنما ... تغتاظ أنت ويستفيد ويحرد
Beware of disputing with the envious, for ... you are vexed, while he profits and grows angry.
وكان كثيرا ما يتمثل بقول محي الدين المعروف بحافى رأسه:
He also often quoted the words of Muhyi al-Din, known as Hafi Raʾsih:
عتبت على الدنيا لتقديم جاهل ... وتأخير ذي علم فقالت: خذ العذرا
I reproached the world for advancing an ignorant man ... and holding back a man of learning; it said: Take this excuse:
بنو الجهل أبنائي وكل فضيلة ... فأبناؤها أبناء ضرتي الأخرى
The children of ignorance are my children, and every virtue ... its children are the children of my other fellow-wife.