1 Kings 11:4
11:4 When Solomon became old, his wives shifted his allegiance to other gods; he was not wholeheartedly devoted to the Lord his God, as his father David had been.
1 Kings 11:38
11:38 You must obey all I command you to do, follow my instructions, do what I approve, and keep my rules and commandments, like my servant David did. Then I will be with you and establish for you a lasting dynasty, as I did for David; I will give you Israel.