But a son will be born to you who will be a man of rest. I will give him rest from all his enemies on every side; for his name will be Solomon, and I will grant to Israel peace and quiet during his reign.
Though Solomon was young and tender, he was capable of receiving instructions, which his father accordingly gave him, concerning the work for which he was designed. When David came to the throne he had many things to do, for the foundations were all out of course; but Solomon had only one thing in charge, and that was to build a house for the Lord God of Israel, Ch1 22:6.
Commenting on 1 Chronicles 22:6-16
Behold, a son shall be born to thee,.... For this was said to David before the birth of Solomon, see Sa2 7:12. who shall be a man of rest, and I will give him rest from all his enemies round about: and so should be at leisure for such a work, and his people enjoy great prosperity and riches, and so be capable of contributing...
His name shall be Solomon - שלמה Shelomoh, from שלם shalam, he was peaceable; and therefore, says the Lord, alluding to the name, I will give Peace, שלום Shalom, in his days.