He married them even though the Lord had commanded the Israelites not to intermarry with these people, because they would cause the Israelites to give their loyalty to other gods.
I am going to do this because Solomon has rejected me and has worshiped foreign gods: Astarte, the goddess of Sidon; Chemosh, the god of Moab; and Molech, the god of Ammon. Solomon has disobeyed me; he has done wrong and has not kept my laws and commands as his father David did.
If you obey me completely, live by my laws, and win my approval by doing what I command, as my servant David did, I will always be with you. I will make you king of Israel and will make sure that your descendants rule after you, just as I have done for David.
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
Solomon's son Rehoboam was forty-one years old when he became king of Judah, and he ruled seventeen years in Jerusalem, the city which the Lord had chosen from all the territory of Israel as the place where he was to be worshiped. Rehoboam's mother was Naamah from Ammon.
Solomon loved the Lord and followed the instructions of his father David, but he also slaughtered animals and offered them as sacrifices on various altars.
Four hundred and eighty years after the people of Israel left Egypt, during the fourth year of Solomon's reign over Israel, in the second month, the month of Ziv, Solomon began work on the Temple.
“Remember, Lord, that I have served you faithfully and loyally and that I have always tried to do what you wanted me to.” And he began to cry bitterly.
And to Solomon he said, “My son, I charge you to acknowledge your father's God and to serve him with an undivided heart and a willing mind. He knows all our thoughts and desires. If you go to him, he will accept you; but if you turn away from him, he will abandon you forever.
because then they would lead your children away from the Lord to worship other gods. If that happens, the Lord will be angry with you and destroy you at once.