Zayd bin Thabit reported,

Abu Bakr sent for me after the heavy casualties at the Battle of Yamama, and Umar was with him.Abu Bakr said, "Umar came to me and said, 'The killing has been severe among the reciters of the Quran on the day of Yamama, and I fear that such heavy losses among the reciters may occur in other battles, causing much of the Quran to be lost. I think you should order the collection of the Quran.'""I said to Umar, 'How can I do something the Messenger of Allah ﷺ did not do?'""Umar said, 'By Allah, it is good.' Umar kept urging me about it until Allah opened my heart to it as He had opened Umar's heart, and I came to see what Umar had seen."Zayd said, Abu Bakr then said to me, "You are a young, intelligent man whom we do not suspect of anything. You used to write down the revelation for the Messenger of Allah ﷺ. So search out the Quran and gather it together."Zayd said, By Allah, if he had charged me with moving a mountain, it would not have been heavier on me than what he charged me with regarding the collection of the Quran.I said, "How can the two of you do something the Messenger of Allah ﷺ did not do?"Abu Bakr said, "By Allah, it is good." He kept pressing me until Allah opened my heart to what He had opened the hearts of Abu Bakr and Umar to, and I came to see what they had seen.So I searched out the Quran, gathering it from palm stalks, thin white stones, leather pieces, and the memories of men. I found the end of Surat at-Tawba, "There has certainly come to you a Messenger from among yourselves" until its end, with Khuzayma, or Abu Khuzayma, and I added it to its surah.The pages remained with Abu Bakr until Allah عز وجل took him, then with Umar during his lifetime until Allah took him, then with Hafsa bint Umar.Muhammad bin Ubaydullah said, "By 'likhaf' he means thin white stones."

Bukhari 7191

Sahih

حدثنا محمد بن عبيد الله أبو ثابت حدثنا إبراهيم بن سعد عن ابن شهاب عن عبيد بن السباق

عن زيد بن ثابت قال

بعث إلي أبو بكر لمقتل أهل اليمامة وعنده عمر فقال أبو بكر إن عمر أتاني فقال إن القتل قد استحر يوم اليمامة بقراء القرآن وإني أخشى أن يستحر القتل بقراء القرآن في المواطن كلها فيذهب قرآن كثير وإني أرى أن تأمر بجمع القرآن قلت كيف أفعل شيئا لم يفعله رسول الله ﷺ فقال عمر هو والله خير فلم يزل عمر يراجعني في ذلك حتى شرح الله صدري للذي شرح له صدر عمر ورأيت في ذلك الذي رأى عمر قال زيد قال أبو بكر وإنك رجل شاب عاقل لا نتهمك قد كنت تكتب الوحي لرسول الله ﷺ فتتبع القرآن فاجمعه قال زيد فوالله لو كلفني نقل جبل من الجبال ما كان بأثقل علي مما كلفني من جمع القرآن قلت كيف تفعلان شيئا لم يفعله رسول الله ﷺ قال أبو بكر هو والله خير فلم يزل يحث مراجعتي حتى شرح الله صدري للذي شرح الله له صدر أبي بكر وعمر ورأيت في ذلك الذي رأيا فتتبعت القرآن أجمعه من العسب والرقاع واللخاف وصدور الرجال فوجدت في آخر سورة التوبة {لقد جاءكم رسول من أنفسكم} إلى آخرها مع خزيمة أو أبي خزيمة فألحقتها في سورتها وكانت الصحف عند أبي بكر حياته حتى توفاه الله عز وجل ثم عند عمر حياته حتى توفاه الله ثم عند حفصة بنت عمر قال محمد بن عبيد الله اللخاف يعني الخزف

البخاري 7191صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Rulings
Chapter
It is recommended for a scribe to be trustworthy and intelligent
Numbering
Darussalam 7191
Bukhari 7191