he shall build a house for my name; and he shall be my son, and I will be his father; and I will establish the throne of his kingdom over Israel for ever.
If God’s revelation to David (1 Chronicles 22:8) took place at the same time as the one mentioned in 2 Samuel 7:2, Solomon’s birth appears to have followed the giving of the Davidic Covenant (cf. 1 Chronicles 22:9). However, it seems probable that God gave the revelation in 1 Chronicles 22:8 to David before Solomon was born (1 Chronicles 22:9). He evidently repeated it after Solomon’s birth when He gave David the covenant (2 Samuel 7:2). Such a repetition is very probable in view of David’s great desire to build a house for the Lord. This was the passion of his life at the time he became king and from then on.