5 And David said, Solomon my son is young and untested, and the house which is to be put up for the Lord is to be very great, a thing of wonder and glory through all countries; so I will make ready what is needed for it. So David got ready a great store of material before his death.

6 Then he sent for his son Solomon, and gave him orders for the building of a house for the Lord, the God of Israel. 7 And David said to Solomon, My son, it was my desire to put up a house for the name of the Lord my God. 8 But the word of the Lord came to me saying, You have taken lives without number and made great wars; I will not let you be the builder of a house for my name, because of the lives you have taken on the earth before my eyes. 9 But you will have a son who will be a man of rest; and I will give him rest from wars on every side. His name will be Solomon, and in his time I will give Israel peace and quiet;

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.