The Qur’an was not authored by Muhammad. It was authored by God, revealed to Muhammad (through angel Gabriel) and written into physical form by his companions.