1 Kings 11:10 in the King James Version
And had commanded him concerning this thing, that he should not go after other gods: but he kept not that which the LORD commanded.
Context
9 The LORD was angry with Solomon, because his heart was turned away from the LORD, the God of Israel, who had appeared to him twice,
10 and had commanded him concerning this thing, that he should not go after other gods; but he didn’t keep that which the LORD commanded.
11 Therefore the LORD said to Solomon, “Because this is done by you, and you have not kept my covenant and my statutes, which I have commanded you, I will surely tear the kingdom from you, and will give it to your servant.