1 Kings 11:4-10

ASV(i) 4 For it came to pass, when Solomon was old, that his wives turned away his heart after other gods; and his heart was not perfect with Jehovah his God, as was the heart of David his father. 5 For Solomon went after Ashtoreth the goddess of the Sidonians, and after Milcom the abomination of the Ammonites. 6 And Solomon did that which was evil in the sight of Jehovah, and went not fully after Jehovah, as did David his father. 7 Then did Solomon build a high place for Chemosh the abomination of Moab, in the mount that is before Jerusalem, and for Molech the abomination of the children of Ammon. 8 And so did he for all his foreign wives, who burnt incense and sacrificed unto their gods.
9 And Jehovah was angry with Solomon, because his heart was turned away from Jehovah, the God of Israel, who had appeared unto him twice, 10 and had commanded him concerning this thing, that he should not go after other gods: but he kept not that which Jehovah commanded.