1 Kings 3:5

3:5 One night in Gibeon the Lord appeared to Solomon in a dream. God said, “Tell me what I should give you.”

1 Kings 11:9

11:9 The Lord was angry with Solomon because he had shifted his allegiance away from the Lord, the God of Israel, who had appeared to him on two occasions