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

“appeared to him twice.” God personally appeared to Solomon on two different occasions (1 Kings 3:5; 9:2), but in spite of his personal and intimate experiences with God, Solomon turned away from Him and did evil in His sight. Solomon is one person who shows us that knowledge does not equal commitment. We can know a lot about God without being committed to him. [For more on God appearing to people, see commentary on Acts 7:55].

Commentary for: 1 Kings 11:9