Question: how quran was written and compiled?
Answer: There are disagreements among both Muslim and non-Muslim scholars as to when the Quran was first compiled. A hadith in Sahih Bukhari states that the caliph Abu Bakr commanded Zayd ibn Thabit to compile the written Quran, relying upon both textual fragments and the memories of those who had memorized it.