Short answer

It was kept in two ways at once, from the first day. Each passage was learned by heart, word for word, and recited in prayer. Each was also written down by scribes as it came. The Prophet (ﷺ) told them where every passage belonged. Once a year the angel Gabriel went over the whole text with him, and twice in his last year. Within two years of his death, Abu Bakr, the first leader after him, had it gathered into one volume. He used the written pieces and the memories of men. Less than twenty years after his death, Uthman, the third leader, sent copies of that volume to every great city. Some of the oldest leaves that survive, kept in Birmingham in England, carry today's text, apart from small points of spelling. The Qur'an promised that God (﷾) would guard it, and history shows the promise kept.

Read the full explanation

See your saved pages