The Lord had appeared to Solomon twice. But Solomon turned away from following the Lord, the God of Israel. So the Lord was angry with him.