Behold, a son shall be born to you, who shall be a man of rest; and I will give him rest from all his enemies round about; for his name shall be Solomon, and I will give peace and quietness to Israel in his days:
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.