If you know what comes in verse two, you will probably think, "Well, Solomon didn't think this little command of God made any difference." (That is, marrying foreign women.) God said, "Don't do that! If you do that, they are going to turn your heart away." Solomon probably thought that he was strong enough that he could resist it, and he would never turn away from God. A "little" thing, but it was not "little."
David seemed to pick up strength as he went along in life. Solomon was the other way. Solomon started out strong, but he tailed off at the end—as his weakness, probably with age, began to become apparent.