He had commanded him about this, so that he would not follow other gods, but Solomon did not do what the LORD had commanded.