Short answer

He did not write it, and these rebukes are part of the proof. A man making up a scripture to win followers has every reason to leave out any blame of himself. Yet the Qur'an corrects the Prophet Muhammad (ﷺ) in words he had to recite to his own followers. It blames him for frowning at a blind man who came to learn. It asks why he forbade himself what God (﷾) had made lawful. It tells him the choice to forgive or punish certain men was not his. When revelation stopped for a time, he was mocked and could only wait. When the sun darkened on the day his son died, he would not let people call it a miracle. Islam's answer: the Qur'an is God's (﷾) word, and he passed it on as he received it, even where it corrects him.

Read the full explanation

See your saved pages