Allah Subhana wa ta’ala says “We have surely sent down the Qura’an and we will certainly protect it (from corruption).”The Quraan is the final revelation of Allaah Almighty. It was revealed to the Prophet over a period of twenty-three years. Every word of the Quran is protected by Allaah Almighty and no part of it has been changed since the revelation. The purpose of the Quran is to teach men how to obey Allah Almighty, and how to treat and respect the creation of Allaah Almighty. It teaches us how the past nations were destroyed when they refused to obey Allaah Almighty. It teaches us about the everlasting life in the hereafter.
In the time of Sayyidina Abu Bakr رضی اللہ عنہ the Muslim army went to fight the false prophet Musailamah (Kazzab). In this battle there were many Huffaz (who learn it by heart) of the Quran as well. however at the end of the battle through the Muslims were victorious, they lost a lot of Huffaz. A sahabi (companion of Prophet ﷺ) came to Sayyidina Abu Bakr رضی اللہ عنہ and said that he was worried that if all the Huffaz were killed then there would be no one left to preserve the Quran. Itwould therefore be best if the Quran was compiled in book form. Sayyidina Abu Bakr رضی اللہ عنہ was given the task of collecting all the pieces of skins and barks upon which the Quran was written and then he compiled the first copy of the Quran in a book form.