He had 700 wives who were princesses and 300 wives who were concubines.
In his old age, his wives tempted him to follow other gods. He was no longer committed to the LORD his God as his father David had been.
Solomon followed Astarte (the goddess of the Sidonians) and Milcom (the disgusting idol of the Ammonites).
So Solomon did what the LORD considered evil. He did not wholeheartedly follow the LORD as his father David had done.
Then Solomon built an illegal worship site on the hill east of Jerusalem for Chemosh (the disgusting idol of Moab) and for Molech (the disgusting idol of the Ammonites).
He did these things for each of his foreign wives who burned incense and sacrificed to their gods.
So the LORD became angry with Solomon because his heart had turned from the LORD God of Israel, who had appeared to him twice.
God had given him commands about this. [He told him] not to follow other gods. But Solomon did not obey God's command.
The LORD told Solomon, "Because this is your attitude and you have no respect for my promises or my laws that I commanded you to keep, I will certainly tear the kingdom away from you. I will give it to one of your servants.
But I will not do it in your lifetime because of your father David. I will tear it away from the hands of your son.
However, I will not tear the whole kingdom away from you. I will give your son one tribe for my servant David's sake and for the sake of Jerusalem, [the city] that I chose."