On the mountain east of Jerusalem he built a place to worship Chemosh, the disgusting god of Moab, and a place to worship Molech, the disgusting god of Ammon.
Even though the Lord, the God of Israel, had appeared to Solomon twice and had commanded him not to worship foreign gods, Solomon did not obey the Lord but turned away from him. So the Lord was angry with Solomon
He expelled from the country all the male and female prostitutes serving at the pagan places of worship, and he removed all the idols his predecessors had made.
I told them, “It was foreign women that made King Solomon sin. Here was a man who was greater than any of the kings of other nations. God loved him and made him king over all of Israel, and yet he fell into this sin.