The LORD was very angry with Solomon, for his heart had turned away from the LORD, the God of Israel, who had appeared to him twice.