The LORD was angry with Solomon because he had shifted his allegiance away from the LORD, the God of Israel, who had appeared to him on two occasions