How was the Quran collected and written down after the Prophet ﷺ died?

The Quran: preservation, wisdom and readingQuran · 2Sources · 4

Short answer

The Quran was written down and memorised during the lifetime of the Prophet ﷺ. After he died, Abu Bakr had it gathered into one set of pages under Zayd ibn Thabit, a scribe of the revelation. Later Uthman had copies made from those pages and sent to the main cities, to keep everyone on one text.

The fuller answer

Zayd ibn Thabit reported that after many reciters of the Quran were killed in the battle of Yamamah, Umar feared that part of the Quran might be lost and urged Abu Bakr to have it collected. Abu Bakr hesitated at first, since the Prophet ﷺ had not done so, but became convinced it was good. He asked Zayd, 'a young and intelligent man whom we do not doubt, who used to write down the revelation for the Messenger of Allah.' Zayd said the task was heavier than moving a mountain, but he searched for the Quran in palm stalks, thin stones and the memory of men until he had the whole of it. The pages stayed with Abu Bakr, then Umar, then Umar's daughter Hafsah.

Years later, Hudhayfah saw that people from Syria and Iraq disagreed on how they recited and warned Uthman to save the community before it differed about the Book as the Jews and Christians had. Uthman borrowed the pages from Hafsah and asked a committee, headed by Zayd, to copy them into volumes, using the dialect of Quraysh where they differed, because the Quran was revealed in it. Copies were sent to the main regions, and Uthman ordered that other sheets and copies be burned, so that the community would stay together on one text.

Muslims note that this work was done by senior companions who knew the Quran well, and that it relied on both writing and the memory of the many who knew it by heart. Zayd said he found the last verses of chapter 9 only with one companion, and, when copying under Uthman, a verse of chapter 33 only with another, one he remembered hearing the Prophet recite, and he added it to its chapter. The Quran also says that its collection and recitation are Allah's responsibility, and the final review of the whole Quran with Gabriel in the Prophet's last year is part of the same story.

From the Quran

إِنَّ عَلَيْنَا جَمْعَهُۥ وَقُرْءَانَهُۥ ﴿١٧﴾

Lo! upon Us (resteth) the putting together thereof and the reading thereof.

إِنَّا نَحْنُ نَزَّلْنَا ٱلذِّكْرَ وَإِنَّا لَهُۥ لَحَٰفِظُونَ ﴿٩﴾

Lo! We, even We, reveal the Reminder, and lo! We verily are its Guardian.

Sources