Qatada reported,

I asked Anas bin Malik, "Who compiled the Quran during the lifetime of the Messenger of Allah ﷺ?"He replied, "Four men, all of them from the Ansar. Ubayy bin Kaab, Muaz bin Jabal, Zayd bin Thabit, and a man from the Ansar known as Abu Zayd."

Muslim 6341

Sahih

حدثني أبو داود سليمان بن معبد حدثنا عمرو بن عاصم حدثنا همام

حدثنا قتادة قال

قلت لأنس بن مالك من جمع القرآن على عهد رسول الله ﷺ قال أربعة كلهم من الأنصار أبي بن كعب ومعاذ بن جبل وزيد بن ثابت ورجل من الأنصار يكنى أبا زيد

مسلم 6341صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Virtues of the Companions, may Allah be pleased with them
Chapter
From the virtues of Ubayy bin Kaab and a group of the Ansar, may Allah be pleased with them
Numbering
Darussalam 6341
Muslim 6341