It happened, when David lived in his house, that David said to Nathan the prophet, Behold, I dwell in a house of cedar, but the ark of the covenant of Yahweh [dwells] under curtains.
God’s plan was that David’s son would build Him a house, and He revealed this to David (1 Chronicles 17:11-15). However, these words look beyond Solomon to One who would not fail to fulfill all God’s purposes as David’s descendant.