So Muhammad might have just stumbled upon the text of the Quran?
there was NO Muhammad in the history of Islam. A careful reading of Quran
(with or without additional corroborative evidence from hadith nonsense that is related to verses in Quran ) tells me that this book was put together from the Christian/Jewish/Arab Pagan stories that were available around Arabian peninsula of that time. And the book was written in the form of sonnets and songs with rhyming words in Arabic.
Muhammad was hardly mentioned in Quran unlike Jesus and Moses., And whenever Quran mentions something about "Muhammad" directly or indirectly such as these verses
065.001 : O Prophet! when you divorce women, divorce them for~ their prescribed time, and calculate the number of the days prescribed, and be careful of (your duty to) Allah, your Lord. Do not drive them out of their houses, nor should they themselves go forth, unless they commit an open indecency; and these are the limits of Allah, and whoever goes beyond the limits of Allah, he indeed does injustice to his own soul. You do not know that Allah may after that bring about reunion .
066.001 : O Prophet! why do you forbid (yourself) that which Allah has made lawful for you; you seek to please your wives; and Allah is Forgiving, Merciful.'
066.002 : Allah indeed has sanctioned for you the expiation of your oaths and Allah is your Protector, and He is the Knowing the Wise.
066.003 : And when the prophet secretly communicated a piece of information to one of his wives-- but when she informed (others) of it, and Allah made him to know it, he made known part of it and avoided part; so when he informed her of it, she said: Who informed you of this? He said: The Knowing, the one Aware, informed me.
066.004 : If you both turn to Allah, then indeed your hearts are already inclined (to this); and if you back up each other against him, then surely Allah it is Who is his Guardian, and Jibreel and -the believers that do good, and the angels after that are the aiders.
066.005 : Maybe, his Lord, if he divorce you, will give him in your place wives better than you, submissive, faithful, obedient, penitent, adorers, fasters, widows and virgins.
it in fact incriminate "THIS MUHAMMAD OF THAT TIME" you see in those verses as criminal character..
So what you have in Quran is Multiple Muhammads.. A guy who acts like Moses and another guy who acts like Jesus and third guy who make rules for sex/marriage/praying and preying on women/ and......and burning infidels ..idolaters and apostates in hell fire.
that is what you have in Quran w.r.t Muhammad's personality.., Rest of the verses are either copy/pasted stories from other religious scriptures or simply some silly polemic statements ...