روى أبو مصعب أن أبا جعفر المنصور قال لمالك: ضع للناس كتابا أحملهم عليه فكلمه مالك في ذلك فقال: ضعه فما أحد اليوم أعلم منك فوضع الموطأ فلم يفرغ منه حتى مات أبو جعفر. وفي رواية أن المنصور قال له: يا أبا عبد الله ضع هذا العلم ودون كتابا وجنب فيه شدائد عبد الله بن عمر رضي الله عنهما ورخص عبد الله بن عباس رضي الله عنهما وشواذ بن مسعود رضي الله عنه واقصد أواسط الأمور وما أجمع عليه الصحابة والأئمة.
Abu Musʿab related that Abu Jaʿfar al-Mansur said to Malik: Compose for the people a book to which I may make them adhere. Malik spoke to him about that, and he said: Compose it, for no one today is more learned than you. So he composed the Muwattaʾ, and he had not finished it when Abu Jaʿfar died. In one version al-Mansur said to him: O Abu ʿAbd Allah, set down this knowledge and compile a book, and avoid in it the severities of ʿAbd Allah ibn ʿUmar, God be pleased with them both, the concessions of ʿAbd Allah ibn ʿAbbas, God be pleased with them both, and the isolated opinions of Ibn Masʿud, God be pleased with him; and aim at the middle of matters and what the Companions and the imams agreed upon.
وفي رواية أنه قال له: اجعل هذا العلم علما واحدا. فقال له: إن أصحاب رسول الله صلى الله عليه وسلم تفرقوا في البلاد فأفتى كل في مصره بما رأى فلأهل المدينة قول ولأهل العراق قول تعدوا فيه طورهم. فقال: أما أهل العراق فلست أقبل منهم صرفا ولا عدلا وإنما العلم علم أهل المدينة فضع للناس العلم.
In one version he said to him: Make this knowledge a single knowledge. He said to him: The Companions of the Messenger of God, God bless him and grant him peace, dispersed in the lands, and each gave fatwas in his city according to what he saw; the people of Medina have a view, and the people of Iraq have a view in which they have overstepped their bounds. He said: As for the people of Iraq, I accept nothing at all from them; knowledge is only the knowledge of the people of Medina, so set down knowledge for the people.
وفي رواية عن مالك: فقلت له أن أهل العراق لا يرضون علمنا؟ فقال أبو جعفر: نضرب عليه عامتهم بالسيف ونقطع عليه ظهورهم بالسياط. وروي أن المهدي قال له: ضع كتابا أحمل الأمة عليه فقال له مالك: أما هذا الصقع فقد كفيتكه يعني المغرب. وأما الشام ففيه الأوزاعي. وأما أهل العراق ففيهم أهل العراق.
In a version from Malik: I said to him: The people of Iraq will not be content with our knowledge. Abu Jaʿfar said: We shall strike their common folk with the sword for it and cut their backs with whips for it. It is related that al-Mahdi said to him: Compose a book to which I may make the community adhere. Malik said to him: As for this region, I have sufficed you for it, meaning the Maghrib. As for Syria, al-Awzaʿi is there. As for the people of Iraq, they are the people of Iraq.
قال عتيق الزبيري: وضع مالك الموطأ على نحو من عشرة آلاف حديث فلم يزل ينظر فيه كل سنة ويسقط منه حتى بقي هذا ولو بقي قليلا لأسقطه كله.
ʿAtiq al-Zubayri said: Malik composed the Muwattaʾ on some ten thousand hadiths, and he continued looking into it every year and dropping from it until this remained; had he lived a little longer, he would have dropped it all.