Thank you for contacting BibleAsk.
After David build a palace for himself, he realized how inappropriate it was that the services of God were carried out in a tent. Moses gave instruction that there should be one central place of worship (Deut. 12:13, 14), So, David wanted to fulfill Moses’ instruction.
David expressed his thoughts to Nathan the prophet saying, “Here I am, living in a house of cedar, while the ark of the covenant of the Lord is under a tent” (1 Chronicles 17:1). And Nathan encouraged David to carry on his plan (1 Chronicles 17:2).
But the Lord said to Nathan: “Go and tell my servant David, ‘This is what the Lord says: You are not the one to build me a house to dwell in’” (verse 4). God plans were that David’s son was to carry on the project (verses 11–12).
David praised God for the privilege of having his son Solomon build the temple, “You, Lord, are God! You have promised these good things to your servant. Now you have been pleased to bless the house of your servant, that it may continue forever in your sight; for you, Lord, have blessed it, and it will be blessed forever” (1 Chronicles 17:26–27).
And the Lord explained to David why He chose Solomon to build His house “You have shed much blood and have fought many wars. You are not to build a house for my Name, because you have shed much blood on the earth in my sight” (1 Chronicles 22:8 also 1 Chronicles 28:3). It was not appropriate that a soldier of war should build the world’s great temple of peace. The wars of David were certainly necessary and justifiable wars, but they were still wars which caused the shedding of much blood. It seemed inappropriate that such a king should build the Temple.
Although David was not allowed to build the temple, he collected materials and prepared the plans for the temple’s construction. And he told Solomon, “I have taken great pains to provide for the temple of the Lord a hundred thousand talents of gold, a million talents of silver, quantities of bronze and iron too great to be weighed, and wood and stone. And you may add to them. You have many workers: stonecutters, masons and carpenters, as well as those skilled in every kind of work in gold and silver, bronze and iron—craftsmen beyond number. Now begin the work, and the Lord be with you” (1 Chronicles 22:14–16).
Solomon fulfilled the Lord’s command during his reign and build the temple of God that it may be “a house of prayer for all nations” (Isaiah 56:7) and declare His glory to all the earth.
In His service,