1 Kings 11:9

9 And the LORD was angry with Solomon, because his heart was turned from the LORD God of Israel, which had appeared unto him twice,

1 Kings 11:9 In-Context

7 Then did Solomon build an high place for Chemosh, the abomination of Moab, in the hill that is before Jerusalem, and for Molech, the abomination of the children of Ammon.
8 And likewise did he for all his strange wives, which burnt incense and sacrificed unto their gods.
9 And the LORD was angry with Solomon, because his heart was turned from the LORD God of Israel, which 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 the LORD commanded.
11 Wherefore the LORD said unto Solomon, Forasmuch as this is done of thee, and thou hast not kept my covenant and my statutes, which I have commanded thee, I will surely rend the kingdom from thee, and will give it to thy servant.
The King James Version is in the public domain.