As long as Solomon maintained an “obedient heart,” with which he was concerned at the beginning, he had Jehovah’s favor and he prospered.
But his bad outcome demonstrates that knowledge, great ability, or power, riches, and fame are not the most important things, and that to turn away from Jehovah is to forsake wisdom. Solomon’s own counsel proved true: “More than all else that is to be guarded, safeguard your heart, for out of it are the sources of life.” (1Ki 3:9; Pr 4:23)
His case illustrates the treacherousness and desperateness of the heart of sinful man, but more, it shows that the best of hearts can be enticed if constant vigilance is not kept. Loving what Jehovah loves and hating what he hates, constantly seeking his guidance and the doing of what pleases him, are a sure protection.—Jer 17:9; Pr 8:13; Heb 1:9; Joh 8:29.