and had commanded him concerning this thing, that he should not go after other gods; but he did not keep what the LORD had commanded.
1 Kings 11:10
Surrounding context
11:9 So the LORD became angry with Solomon, because his heart had turned from the LORD God of Israel, who had appeared to him twice,
11:10 and had commanded him concerning this thing, that he should not go after other gods; but he did not keep what the LORD had commanded.
11:11 Therefore the LORD said to Solomon, "Because you have done this, and have not kept My covenant and My statutes, which I have commanded you, I will surely tear the kingdom away from you and give it to your servant.