the messenger, may allah exalt his mention, had an excellent, complete and sound intellect. no man has ever had an intellect as complete and perfect as his. qadhi iyaadh, may allah have mercy on him, said:
'this becomes clear to an individual when the researcher reads the prophet's biography and understands his state of affairs, and his meaningful and inclusive utterances and traditions, his good manners, ethics and moral character, his knowledge of the torah and gospel and other divine scriptures, and his knowledge of statements of the wise, and knowledge of bygone nations, and ability to strike examples and implement policies and correct emotional manners. he was an example and paradigm to which his people related to in all branches of knowledge; acts of worship, medicine, laws of inheritance, lineage, and other matters as well. he knew and learned all of this without reading or examining the scriptures of those before us, nor did he sit with their scholars. the prophet had no formal schooling, and was without knowledge of the above before being commissioned as a prophet, nor could he read or write. the prophet, may allah exalt his mention, was wise to the fullest extent of his mental capacity. allah, the exalted, informed him of some of what had taken place (in the past) and of that which would take place in the future. this is a sign that the dominion belongs to allah, and that he is capable over all things.'
 qadhi eiyadh, ‘al-shifa bita’reefi hoquooqil-mostafa’,