5 David was thinking, "My son Solomon is too young to plan ahead for this. But the sanctuary that is to be built for God has to be the greatest, the talk of all the nations; so I'll get the construction materials together." That's why David prepared this huge stockpile of building materials before he died.

6 Then he called in Solomon his son and commanded him to build a sanctuary for the God of Israel. 7 David said to Solomon, "I wanted in the worst way to build a sanctuary to honor my God. 8 But God prevented me, saying, 'You've killed too many people, fought too many wars. You are not the one to honor me by building a sanctuary - you've been responsible for too much killing, too much bloodshed. 9 But you are going to have a son and he will be a quiet and peaceful man, and I will calm his enemies down on all sides. His very name will speak peace - that is, Solomon, which means Peace - and I'll give peace and rest under his rule.

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.