1 Kings 11:6-10 New King James Version (NKJV)

6. Solomon did evil in the sight of the Lord, and did not fully follow the Lord, as did his father David.

7. Then Solomon built a high place for Chemosh the abomination of Moab, on the hill that is east of Jerusalem, and for Molech the abomination of the people of Ammon.

8. And he did likewise for all his foreign wives, who burned incense and sacrificed to their gods.

9. So the Lord became angry with Solomon, because his heart had turned from the Lord God of Israel, who had appeared to him twice,

10. and had commanded him concerning this thing, that he should not go after other gods; but he did not keep what the Lord had commanded.

1 Kings 11