So Solomon did what was evil in the sight of the Lord and did not wholly follow the Lord, as David his father had done.