The Lord had commanded Solomon about this very thing, that he shouldn’t follow other gods. But Solomon didn’t do what the Lord commanded.