So David gave orders to gather the foreigners in the land of Israel, from whom he appointed stonecutters to prepare finished stones for building the house of God. David provided a large quantity of iron to make the nails for the doors of the gateways and for the fittings, together with more bronze than could be weighed and more cedar logs than could be counted; for the Sidonians and Tyrians had brought a large quantity of cedar logs to David. And David said, "My son Solomon is young and inexperienced, and the house to be built for the LORD must be exceedingly magnificent—famous and glorious throughout all lands. Therefore I must make preparations for it." So David made lavish preparations before his death.
After the king had settled into his palace and the LORD had given him rest from all his enemies around him, he said to Nathan the prophet, "Here I am, living in a house of cedar, while the ark of God remains in a tent." And Nathan replied to the king, "Go and do all that is in your heart, for the LORD is with you." But that night the word of the LORD came to Nathan, saying, "Go and tell My servant David that this is what the LORD says: Are you the one to build for Me a house to dwell in? For I have not dwelt in a house from the day I brought the Israelites up out of Egypt until this day, but I have moved about with a tent as My dwelling. In all My journeys with all the Israelites, have I ever asked any of the leaders I appointed to shepherd My people Israel, 'Why haven't you built Me a house of cedar?' Now then, you are to tell My servant David that this is what the LORD of Hosts says: I took you from the pasture, from following the flock, to be the ruler over My people Israel. I have been with you wherever you have gone, and I have cut off all your enemies from before you. Now I will make for you a name like the greatest in the land. And I will provide a place for My people Israel and will plant them so that they may dwell in a place of their own and be disturbed no more. No longer will the sons of wickedness oppress them as they did at the beginning and have done since the day I appointed judges over My people Israel. I will give you rest from all your enemies. The LORD declares to you that He Himself will establish a house for you. And when your days are fulfilled and you rest with your fathers, I will raise up your descendant after you, who will come from your own body, and I will establish his kingdom. He will build a house for My Name, and I will establish the throne of his kingdom forever. I will be his Father, and he will be My son. When he does wrong, I will discipline him with the rod of men and with the blows of the sons of men. But My loving devotion will never be removed from him as I removed it from Saul, whom I moved out of your way. Your house and kingdom will endure forever before Me, and your throne will be established forever." So Nathan relayed to David all the words of this entire vision.
Significance
2 Samuel 7:1-17 records the oracle forbidding David from building the temple but promising his son would do so. 1 Chronicles 22:2-5 shows David's response: though forbidden from building, he made extensive preparations — gathering stonecutters, iron, bronze, and cedar in abundance. The Chronicler explicitly connects these preparations to the oracle: David "provided materials in great quantity before his death" because "Solomon my son is young and inexperienced, and the house to be built for the LORD must be exceedingly magnificent" (1 Chr 22:5). This material is entirely absent from Samuel-Kings and represents the Chronicler's distinctive contribution: David obeyed God's prohibition on building while maximizing his contribution within those limits, modeling faithful obedience that serves the next generation.