The LORD became angry at Solomon because his heart wandered away from the LORD God of Israel, who had appeared to him twice