Now the LORD was angry with Solomon because his heart was turned away from the LORD, the God of Israel, who had appeared to him twice,