1 Kings 11:9

9 And the LORD became angry with Solomon because his heart was turned aside from the LORD God of Israel, who had appeared unto him twice,