After securing his rule, a deep gap becomes apparent to David between his own luxurious living conditions and the temporary dwelling of the Ark of the Covenant. This narrative originally appears in the Book of Samuel, but it is repeated in Chronicles due to its profound significance, as it carries the eternal promise made to the Davidic dynasty [רלב״ג, מלבי״ם].
David recognizes the grandeur of his palace, a home perfectly suited to his royal status [מצודת דוד]. The structure is roofed with fine cedar wood [מצודת דוד], specifically the famous cedars sent by Hiram, King of Tyre, to build this great royal residence [מלבי״ם, ביאור שטיינזלץ]. Looking at his magnificent home, David realizes that God has fulfilled His promise to grant the people of Israel rest from their enemies. With this peace established, David understands that the time for action has arrived. He concludes that it is now his duty to fulfill the next directive given in the Torah, which is to build a permanent structure where God will rest His name [רש״י].
The king is deeply pained by the stark contrast between his personal splendor and the reality that the Ark of the Covenant still rests under the curtains of a temporary tent [מצודת דוד, מלבי״ם]. Feeling that such a humble setting is disrespectful and unsuited for the Ark of God, David approaches Nathan the Prophet. He expresses a powerful desire to correct this imbalance by beginning the construction of a permanent Temple for God [מצודת דוד, ביאור שטיינזלץ].