And the Lord was angry with Solomon, because his heart was turned from the Lord God of Israel, which had appeared unto him twice,