The holy QUR'AN refers to his morals thus...
The holy QUR'AN refers to his morals thus: {And most surely you conform (yourself) to sublime morality}. [AL-QALAM: 4]. The people of that era used to worship idols made of stones, wood, or even dates (which they ate when they got hungry), but he (P.B.U.H.) worshipped none but the One God, "Allah Almighty", following in the footsteps of his great grandfather Prophet Abraham (as), father of all monotheists.
Prior to his prophetic mission, Mohammed (P.B.U.H.) used to spend most of his time in the cave of HIRA on top of a mountain in north Mecca. He used to go there secretly and spend the whole month of Ramadan every year in prayer and worship of Allah. THE DIVINE MISSION On the 27th of RAJAB (lunar Calendar) (610 A.C), he was as usual in the cave lost in deep prayer and contemplation when the arch-angel JIBRIEL (Gabriel) appeared to him and ordered him to read.
Mohammed (P.B.U.H.) was illiterate; he could neither read nor write. He was amazed at the order and said, "I cannot read". The angel repeated the order and he (P.B.U.H.) again expressed his inability to read. At the third order to read, the Prophet felt heavy pressure and could actually read what the arch-angel ordered him to read. The first chapter of the holy QUR'AN (according to the order of revelation) was revealed to him.
That chapter says: {Read in the Name of your Lord Who created (everything)' He created Man from a clot. Read, and your Lord is most honorable, Who taught (to write) with the pen; taught man he knew not…} [AL-ALAQ: 1-5]. Through that revelation, Mohammed (P.B.U.H.) was chosen as a Prophet at the age of forty. He was ordered to guide the idolaters and the infidels to the right path, to change the dark era of ignorance and infidelity into an era of knowledge and birth light of faith.
The holy QUR'AN says: {And We have not sent you but as a mercy to the worlds}. [ANBIYA: 107]. The Messenger of Allah left the cave and hurried back to his home where he told his wife about the event. She immediately believed in his Divine mission. He was a bit confused but she encouraged him and was the first woman who swore allegiance to him. His cousin, Ali son of ABI TALIB, then ten years old, was the first male who believed in his mission.
Ali, since an early age (when four years old), grew up in Mohammed's house because of hardship that befell his father ABI TALIB. "WARN THE NEAREST KIN" Prophet Mohammed (P.B.U.H.) used to perform prayer with Ali (as) on his right and KHADIJAH behind them.