The compilation of the Holy Qur�an took place in three stages:
1. During the lifetime of the Holy Prophet (saw): 2. During the caliphate of Sayyidina Abu Bakr (rad): 3. During the caliphate of Sayyidina Othman bin Affan: 1. In the Lifetime of the Holy Prophet (saw): During the time of Prophet Muhammad, Sall-Allahu alayhi wa sallam, the Qur'an was mainly preserved through memorization. Hundreds of Companions of the Prophet, were huffaz, or memorizers of the whole Qur'an and had memorized the Qur'an without any mistakes. But the Qur'an was also preserved through writing.