وله مصنفات في النحو مفيدة، أشهرها: التقييد المحاذي به أبواب "الجمل" للزجاجي المسمى بالاعتماد، وبالقانون أيضا، الجاري عليه بين الناس [اسم] الكراسة القزولية، ومن الناس -وأكثرهم بعض الأندلسيين (1) - من ينسبها لشيخه أبي محمد ابن بري ويذكر عن أبي موسى أنه كان يقول: إنها جمع تلامذة أبي محمد بن بري حسبما لقنوه عنه، ومنهم من يأثر عن أبي موسى أنها من إملاءات ابن بري على أبواب "الجمل" وأن أبا موسى كملها، وكل ذلك مما لا ينبغي التعريج عليه، وإنما هي تقولات حسدته النافسين عليه، وإلا فلم [لم] تعرف إلا من قبل أبي موسى وقد أخذها الناس عنه ودرسهم إياها ولم تشهر إلا له؟ وقد وقفت على خطه في نسخ منها محملا إياها بعض آخذيها عنه، ولم يأت بها أحد زاعما أنه أخذها عن ابن بري على كثرة تلاميذه والآخذين عنه إلى عصرنا هذا، ولم يزل أبو موسى يتولى تهذيبها وتنقيحها والزيادة فيها والنقص منها وتغيير بعض عباراتها حسبما يؤديه إليه اجتهاده ويقتضيه اختياره، وشهير ورعه يزعه عن التعرض إلى مثل هذه التصرفات في غير مصنفه، اللهم إلا أن يكون ابن بري قد أذن له في ذلك، وهو بعيد إن لم يكن باطلا؛ لما تقدم من أنه لم يأت بها أحد عنه ولا نسبها إليه منذ مئة وثلاثين سنة أو نحوها وهلم جرا، وعلى الجملة، فإنه كان راسخ القدم في النحو، ولا سبيل إلى إنكار ذلك، ومصنفاته تشهد بذلك، ككتابه الذي بسط فيه مقاصد هذا "الاعتماد" وتوفي قبل إكماله، وشرح أيضا "إيضاح" الفارسي جملة، وشرح شواهده مفردة، إلى غير ذلك من التنبيهات والمعلقات [على "كتاب] سيبويه"، و"مفصل" الزمخشري، وغير ذلك (1) مما يعرب عن وفور [ملكته وسعة] إدراكه في هذا الفن، وقد حدثني غير واحد ممن لقيته أن [الشيخ النحوي] الحافل أبا علي ابن الشلوبين (2) قدم على مراكش أول قدماته عليها [وصيته بعيد،] وذكره عتيد، وهو مستعد بما عنده للظهور على من اشتملت عليه [الحضرة من المرتسمين] بالعربية، فدخل إليها من باب دكالة أحد أبوابها الشمالية، [وكان] أبو موسى في ذلك الوقت يدرس في مسجد على الطريق بمقربة من ذلك الباب [الذي اجتاز] به الأستاذ أبو علي، وسمع أصوات طلبة العلم قد علت بالمذاكرة والمباحثة، فسأل عن ذلك فأخبر أنه مجلس بعض أساتيذ العربية، فدخل إليه متشوفا ومتطلعا على مراتب طلبة مراكش في النحو، فألفاهم يتفاوضون في مسائل من النحو، وبينما هو يستطرف مأخذهم في المناظرة دخل أبو موسى رجلا رقيق الأدمة تعلوه صفرة، ذا غديرتين، مبتذل الملبس، على رأسه قلنسوة عزف، على زي ذوي المهن من برابرة البوادي، وعندما أطل عليهم سكتوا وسكنوا هيبة له وإجلالا، ولما استقر بأبي موسى المجلس أخذ يتكلم في بعض أبواب العربية بضبط قوانينها وتقييد مسائلها وإحكام أصولها بما لا عهد لأبي علي بمثله، فبهت عند ذلك وسقط في يده، وقال: إذا كان مثل هذا الموضع الخامل الذي لا يكاد يؤبه له، ولا يعد من كبار مجالس العلم؛ لكونه في أخريات البلد، ينتصب للتدريس فيه مثل هذا البربري البعيد في بادي الرأي عن التكلم، فضلا عن مثل هذا الاستبحار في النحو، فما الظن بالمجالس المحتفلة والمساجد المشهورة التي يعتني بها وبمدرسيها ولاة الأمر ويعظم فيها الحفل ويجتمع إليها أكابر طلبة العلم؟ هذا بلد لا أسود فيه بعلمي، فانكفأ للحين من ذلك الموضع، ولم يحل بمراكش ولا حضر مجلسا من مجالس أساتيذها، وعاد إلى بلده إشبيلية مقضيا العجب مما شاهده، ولما شاع ذكر أبي موسى واشتهر أمره وعرف قدره، تكاثر طلبة العلم عليه وانثالوا من كل حدب إليه حتى ضاق عنهم ذلك المسجد الذي كان يدرس فيه، فانتقل إلى مسجد ابن الأبكم شمالي محلة الشرقيين أسفل ممر باب أغمات الأعظم إلى جهة العوادين، ولما نمي إلى المنصور، من بني عبد المؤمن، خبره وقرر عنده ما هو عليه من الدين والزهد والورع والتقشف والإعراض عن الدنيا والانقطاع إلى [نشر العلم والبعد عن التعرض] لأهل الجاه من الأمراء والولاة - وكان دأب عبد المؤمن وبنيه [التنقير عمن هذه] حاله والكشف عن باطن أمره متخوفين ثورته وخروجه عليهم -[فأمر كبير وزرائه] أبا زيد ابن يوجان (1) - بياء مسفول مفتوح وواو مضموم وجيم مشدد [وألف مد ونون - ونقيب] طلبة العلم حينئذ أبا القاسم ابن أبي محمد المالقي (2) فأمرهما بالتوجه إليه [وإحضاره بين] يديه، وأوعز إلى وزيره أنه إن وافقه على الوصول معه استصحبه مكرما مبرورا، [وإن بدا] منه تأب أو تلكؤ ضرب عنقه في مجلسه وجاء برأسه، فتوجها إليه، ولما دخلا عليه [أما] نحوه، فلم يعبأ بهما ولا عرف من هما، وظنهما ممن قصد إليه لاقتباس العلم، ولما انتهيا إليه سلما عليه فرد عليهما السلام، ومر في شأنه غير معرج عليهما، فمكثا هنيأة، فرأيا من حاله وهيئته ومعرفته وهيبته عند الحاضرين ما أوقع في نفوسهما إجلاله، ثم دنا له الوزير وقال له: أجب أمير المؤمنين، فإنا رسولاه إليك، فسبحل وحسبل وحوقل وقال: ما لي ولأمير المؤمنين! وأخذ يكررها، فتشاغل عنه الوزير بالتكلم مع بعض من وليه من حاضري طلبة المجلس، وأشار إلى رئيس الطلبة بأن يلقي إليه ما يهون عليه إجابة الدعوة والعمل على مرضاة أمير المؤمنين، ويعرض له بما تجر الإباية عن ذلك مما يحذر عليه، فلم يزل يتلطف به حتى أجاب إلى ما دعي إليه على كره منه، وتوجه معهما، وأخذ أبو القاسم يؤنسه ويلقي إليه صورة لقائه المنصور كيف تكون، ويؤكد عليه في موافقة أغراضه جمع، حتى انتهيا به إلى مجلس المنصور، فدخل عليه متلففا في عباءة مؤتزرا بقطعة ثوب صوف، فعجب من هيئته، واختبره بكل وجه واستنطقه، فألفاه أحد رجال الكمال فصاحة ودينا وفضلا وعلما، فقربه وأدناه ولاطفه في المكالمة حتى آنسه، وأمره بنزع ما عليه من الثياب ولبس كسوة كاملة قد أعدت له، فامتثل للأمر عملا على إشارة أبي القاسم، ثم صرفه مكرما منوها به، وأصحب النقيب أبا القاسم ابن المالقي مؤنسا إياه، فلما انتهيا إلى باب السادة، أحد أبواب القصر المفضية إلى ظاهره وخارج مراكش، قدمت إليه بغلة فارهة قد عينت. لركوبه، فأشار عليه أبو القاسم بركوبها، وتوجه معه نحو مراكش حتى دخلا على باب القصر، وهو الجاري عليه اسم باب الرب، وأبو موسى لا يعرف أين يتوجه به، حتى أفضيا إلى دار بمحلة هرغة، فدخلا إليها، فوجداها [مشتملة على جميع ما] يحتاج إليه طالب العلم المتمدن من كتب العلم منوعة [الفنون وعبيد وإماء] وبسط وفرش ومعلقات ومواعين وأثاث وخرثي وأطعمة على اختلافها وتوابل ووقود وفخار وغير ذلك، ولما استقرا بالدار وتطوفا عليها [ونظراها علوا وسفلا] واطلعا على جميع ما فيها، أعلمه أبو القاسم أنها وجميع ما احتوت عليه له، وسلمها إليه وأقره فيها وانصرف عنه، ولم يزل المنصور بعد ذلك شديد العناية بأبي موسى راعيا له مفيضا عوارفه عليه متعهدا أحواله متبركا [به وبرؤيته] وقدمه إلى الخطبة في جامعه الأعظم المتصل بقصره حين أتم بناءه، فكان أول خطيب به، واستمر حاله معه على ذكر من التنويه به واعتقاد الخير التام فيه، ولما حضرت المنصور الوفاة عهد أن يتولى غسله أبو موسى تبركا به، فكان كذلك (1)، وكان أبو العباس القورائي على عادته في التنكيت على الناس والنيل منهم يقول إذا رأى أبا موسى: الصفرة في الوجه كنز من الكنوز!
He has useful works on grammar. The most famous of them is the set of notes following the chapters of al-Zajjaji's "al-Jumal", called al-Iʿtimad and also al-Qanun, which goes among people under [the name] al-Kurrasa al-Qazuliyya. Some people, most of them certain Andalusians (1), attribute it to his shaykh Abu Muhammad Ibn Barri and report that Abu Musa used to say that it is a compilation by the students of Abu Muhammad ibn Barri according to what they were taught by him; and some relate from Abu Musa that it is from Ibn Barri's dictations on the chapters of "al-Jumal" and that Abu Musa completed it. None of that deserves attention; these are merely fabrications of those who envied him and competed with him. Otherwise, why was it [not] known except through Abu Musa, when people took it from him, he taught it to them, and it became famous only as his? I have seen his handwriting on copies of it, authorizing some of those who took it from him to transmit it, and no one has brought it forward claiming to have taken it from Ibn Barri, despite the great number of his students and of those who took from him down to this age of ours. Abu Musa never ceased refining it, revising it, adding to it and removing from it, and changing some of its wording as his own judgement led him and his choice required, and his well-known scrupulousness would have restrained him from undertaking such interventions in a work not his own, unless Ibn Barri had permitted him to do so; and that is unlikely, if not false, because of what has been said: that no one brought it from him nor attributed it to him for a hundred and thirty years or so, and onward. In sum, he was firmly grounded in grammar, there is no way to deny that, and his works bear witness to it, such as his book in which he expanded the aims of this "al-Iʿtimad" and died before completing it; he also commented on al-Farisi's "al-Idah" as a whole and commented on its proof-verses separately, besides other remarks and notes [on the "Kitab"] of Sibawayh and al-Zamakhshari's "al-Mufassal", and other things (1) which show the abundance of [his mastery and the breadth] of his understanding in this art. More than one of those I met told me that [the grammarian shaykh,] the eminent Abu ʿAli Ibn al-Shalawbin (2), came to Marrakush on the first of his visits to it, [his fame far-reaching] and his name on everyone's lips, ready, with what he had, to prevail over those of [the capital who were enrolled] in Arabic. He entered it by the Dukkala Gate, one of its northern gates. [At that] time Abu Musa was teaching in a mosque on the road near that gate [through which] the master Abu ʿAli passed. He heard the voices of students of knowledge raised in study and discussion, asked about it, and was told that it was the session of one of the teachers of Arabic. So he went in, eager to see and look into the levels of the students of Marrakush in grammar, and found them conferring on questions of grammar. While he was admiring their manner in debate, Abu Musa came in, a man of thin brown complexion with a yellowish pallor, with two braids of hair, in shabby clothes, wearing on his head a cap of palm fibre, in the dress of the craftsmen among the Berbers of the countryside. When he appeared before them they fell silent and still out of awe and reverence for him. When Abu Musa had settled in the session, he began to speak on one of the chapters of Arabic, setting out its rules, fixing its questions and establishing its principles in a way the like of which Abu ʿAli had never known. At that he was astounded and dismayed, and said: "If such an obscure place as this, which is hardly paid attention to and not counted among the great sessions of learning, being at the far end of the town, has someone like this Berber, who at first sight seems far from even speaking, let alone such ocean-like mastery of grammar, setting himself up to teach in it, what then of the grand sessions and the famous mosques for which, and for whose teachers, the rulers care, where gatherings are great and the leading students of knowledge assemble? This is a town in which I will not become master by my learning." So he turned back at once from that place, did not stay in Marrakush nor attend any session of its teachers, and returned to his town Ishbiliya, having had his fill of wonder at what he had seen. When Abu Musa's name spread, his affair became famous and his standing known, students of knowledge multiplied around him and poured to him from every side, until the mosque in which he taught became too narrow for them, and he moved to the Mosque of Ibn al-Abkam, north of the quarter of the Easterners, below the passage of the great Aghmat Gate, towards the side of the lute-makers. When news of him reached al-Mansur of the Banu ʿAbd al-Muʾmin, and what he was in religion, asceticism, scrupulousness, austerity, turning away from the world and devotion to [spreading knowledge and keeping away from approaching] people of rank among the emirs and governors was confirmed to him (it was the habit of ʿAbd al-Muʾmin and his sons [to investigate anyone in such] a state and uncover his inner affair, fearing his rising and revolt against them), [he ordered his chief vizier] Abu Zayd Ibn Yujjan (1), with a lower yaʾ with fatha, a waw with damma, a doubled jim, [an alif of prolongation and nun, and the head] of the students of knowledge at that time, Abu l-Qasim ibn Abi Muhammad al-Malaqi (2); he ordered the two of them to go to him [and bring him before] him, and instructed his vizier that if he agreed to come with him he should bring him along with honour and kindness, [and if] he showed refusal or hesitation he should strike off his head in his session and bring his head. They went to him, and when they entered upon him [they headed] towards him; he paid no attention to them nor knew who they were, and thought them to be among those who came to him to acquire knowledge. When they reached him they greeted him, he returned their greeting, and went on with his business without turning to them. They waited a little while and saw in his state, his bearing, his knowledge and the awe in which those present held him what instilled reverence for him in their souls. Then the vizier came close to him and said to him: "Answer the summons of the Commander of the Faithful, for we are his two messengers to you." He said "Glory be to God", "God suffices me" and "There is no power nor strength except through God", and said: "What have I to do with the Commander of the Faithful!", and kept repeating it. The vizier occupied himself away from him by talking with some of the students present at the session next to him, and signalled to the head of the students to say to him what would make it easy for him to answer the summons and to work to please the Commander of the Faithful, and to hint to him at what refusal would bring upon him that was to be feared for him. He kept treating him gently until he agreed, against his will, to what he had been summoned to, and went with them. Abu l-Qasim kept putting him at ease and describing to him how his meeting with al-Mansur would be, and urging him to go along with his wishes, all of them [?], until they brought him to al-Mansur's session. He came in to him wrapped in a cloak, with a piece of woollen cloth as a waist-wrapper. He was amazed at his appearance, tested him in every way and made him speak, and found him one of the men of perfection in eloquence, religion, merit and knowledge. So he brought him near, drew him close and spoke kindly with him until he put him at ease, and ordered him to take off the clothes he had on and put on a complete outfit that had been prepared for him. He obeyed the order, acting on Abu l-Qasim's advice. Then he dismissed him, honoured and distinguished, and sent the naqib Abu l-Qasim Ibn al-Malaqi with him to keep him company. When they reached the Gate of the Sadat, one of the gates of the palace leading to its outside and to the outside of Marrakush, a fine mule which had been assigned for his riding was brought to him. Abu l-Qasim advised him to ride it and went with him towards Marrakush until they entered by the palace gate, which goes by the name Bab al-Rabb, while Abu Musa did not know where he was being taken, until they came to a house in the Hargha quarter. They entered it and found it [containing everything] that a settled student of knowledge needs: books of learning in various [fields, male and female slaves,] carpets, furnishings, hangings, utensils, furniture, household goods, foods of every kind, spices, fuel, pottery and other things. When the two of them had settled in the house, gone around it, [looked at it above and below] and seen all that was in it, Abu l-Qasim informed him that it and everything it contained were his, handed it over to him, installed him in it and left him. After that al-Mansur continued to show great care for Abu Musa, looking after him, pouring his favours upon him, attending to his circumstances and seeking blessing [from him and from seeing him]. He appointed him to preach in his great congregational mosque adjoining his palace when he completed its building, and he was the first preacher in it. His standing with him continued, with honour paid to him and full belief in his goodness. When death came to al-Mansur he enjoined that Abu Musa should take charge of washing him, for the blessing, and so it was (1). Abu l-ʿAbbas al-Quraʾi, in his habit of making jokes at people's expense and taking digs at them, used to say when he saw Abu Musa: "Yellowness in the face is a treasure among treasures!"