5 David said, "My son Solomon is still young and inexperienced. And since the Temple to be built for the Lord must be a magnificent structure, famous and glorious throughout the world, I will begin making preparations for it now." So David collected vast amounts of building materials before his death.

6 Then David sent for his son Solomon and instructed him to build a Temple for the Lord, the God of Israel. 7 "My son, I wanted to build a Temple to honor the name of the Lord my God," David told him. 8 "But the Lord said to me, 'You have killed many men in the battles you have fought. And since you have shed so much blood in my sight, you will not be the one to build a Temple to honor my name. 9 But you will have a son who will be a man of peace. I will give him peace with his enemies in all the surrounding lands. His name will be Solomon, and I will give peace and quiet to Israel during his reign.

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.