Yahweh was angry with Solomon, for he had turned his heart from Yahweh, the God of Israel who had appeared to him twice.