“appeared to Solomon.” What Yahweh said to Solomon is recorded in 1 Kings 9:2-9 and 2 Chronicles 7:12-22, and there is more information in Chronicles than in Kings. God personally appeared to Solomon on two different occasions (1 Kings 3:5; 9:2; 11:9; and see commentary on 1 Kings 11:9).
[For more on God appearing to people, see commentary on Acts 7:55.]