5 Now David said, "Solomon my son is young and inexperienced, and the house to be built for the Lord must be exceedingly magnificent, famous and glorious throughout all countries. I will now make preparation for it." So David made abundant preparations before his death.

6 Then he called for his son Solomon, and charged him to build a house for the Lord God of Israel. 7 And David said to Solomon: "My son, as for me, it was in my mind to build a house to the name of the Lord my God; 8 but the word of the Lord came to me, saying, 'You have shed much blood and have made great wars; you shall not build a house for My name, because you have shed much blood on the earth in My sight. 9 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 all around. His name shall be Solomon, for I will give peace and quietness to Israel in his days.

Matthew Henry's Commentary on 1 Chronicles 22:5-9

Commentary on 1 Chronicles 22:1-5

(Read 1 Chronicles 22:1-5)

On occasion of the terrible judgment inflicted on Israel for the sin of David, God pointed out the place where he would have the temple built; upon which, David was excited to make preparations for the great work. David must not build, but he would do all he could; he prepared abundantly before his death. What our hands find to do for God, and our souls, and those round us, let us do it with all our might, before our death; for after death there is no device nor working. And when the Lord refuses to employ us in those services which we desired, we must not be discouraged or idle, but do what we can, though in a humbler sphere.

Commentary on 1 Chronicles 22:6-16

(Read 1 Chronicles 22:6-16)

David gives Solomon the reason why he should build the temple. Because God named him. Nothing is more powerful to engage us in any service for God, than to know that we are appointed thereto. Because he would have leisure and opportunity to do it. He should have peace and quietness. Where God gives rest, he expects work. Because God had promised to establish his kingdom. God's gracious promises should quicken and strengthen our religious service. David delivered to Solomon an account of the vast preparations he had made for this building; not from pride and vain-glory, but to encourage Solomon to engage cheerfully in the great work. He must not think, by building the temple, to purchase a dispensation to sin; on the contrary, his doing that would not be accepted, if he did not take heed to fulfil the statutes of the Lord. In our spiritual work, as well as in our spiritual warfare, we have need of courage and resolution.