For it came to pass, when Solomon was old, that his wives turned away his heart after other elohim: and his heart was not perfect with Yahweh his Elohim, as was the heart of David his father.
And he walked in all the sins of his father, which he had done before him: and his heart was not perfect with Yahweh his Elohim, as the heart of David his father.
And he walked in all the ways of Asa his father; he turned not aside from it, doing that which was right in the eyes of Yahweh: nevertheless the high places were not taken away; for the people offered and burnt incense yet in the high places.
For the eyes of Yahweh run to and fro throughout the whole earth, to show himself strong in the behalf of them whose heart is perfect toward him. Herein thou hast done foolishly: therefore from henceforth thou shalt have wars.