NO MATTER how wise Solomon was, as portrayed in the Bible, he contradicted God’s words. Since the Bible was not written to contradict itself, Solomon’s writings must be considered as his own opinion, not Biblical truth.
Take for example his words in the book of Ecclesiastes. In Ecc. 1:14, he said, “I have seen everything done in this world, and I tell you, it is all useless. It is like chasing the wind.”
There were many things done by Abrahan, Lot, Isaac, Jacob, Esau, and many other people born before Solomon. He had not seen what these people did. His words must be considered as merely his opinion.
Another passage from Ecclesiastes. In 9:5, Solomon, in past said, “Yes, the living know they are going to die, but the dead know nothing.” When he said, “the dead know nothing” in effect, he was saying that human beings have no soul or spirit. This is just his opinion. Because in other parts of the Bible, it was shown that humankind have souls or spirits, that survived physical death. The spirits of Moses and Elijah met with Jesus before he was arrested by the Roman soldiers. Samuel’s spirit scolded King Saul for disturbing the prophet in the world of the dead.