The Lord had warned Solomon about this—that he should not worship other gods. But Solomon did not listen to the Lord's warning.