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.
Matthew Henry's Commentary on 1 Chronicles 22:5
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.