Sayyiduna Anas bin Malik (may Allah be pleased with him) narrates: In the blessed era of the Prophet Muhammad (peace and blessings be upon him), four people compiled the Qur'an (i.e., preserved it in written form), and all of them belonged to the Ansar. (They are:) Sayyiduna Mu'adh bin Jabal, Sayyiduna Ubayy bin Ka'b, Sayyiduna Zayd bin Thabit, and Sayyiduna Abu Zayd (may Allah be pleased with them). May Allah have mercy on these people.
Hadith Referenceصحیح ابن حبان / كتاب إخباره ﷺ عن مناقب الصحابة رجالهم ونسائهم بذكر أسمائهم رضوان الله عليهم أجمعين / 7130
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «الصحيحة» (1/ 581 - 582).فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح على شرط الشيخين