When David moved into his palace, he said to Nathan the prophet, “Look, I am living in a palace made of cedar, but the Ark of the Agreement with the Lord sits in a tent.”
“You remember my father David had to fight many wars with the countries around him, so he was never able to build a temple for worshiping the Lord his God. David was waiting until the Lord allowed him to defeat all his enemies.