A divine promise establishes the central condition for securing a lasting kingdom. God offers His support and the creation of a stable dynasty, but this backing depends entirely on absolute obedience to His commandments. King David is presented as the ultimate role model for this kind of leadership.
The requirement to listen to God demands uncompromising obedience to the laws of the Torah and the instructions delivered by the prophets. This strict standard is meant to prevent a leader from being led astray by his own intellect. A king must not use personal logic to justify ignoring God's directions, a mistake that King Saul made during his reign. Instead, the leader must follow the example of David, who observed the commandments without letting his own wisdom override the word of God [מלבי״ם].
If a king successfully meets these conditions, God promises to build him a secure and enduring household. The primary approach among commentators is that this refers to a stable royal dynasty that will last far into the future [מצודת דוד, ביאור שטיינזלץ]. This guarantee of a lasting legacy mirrors the very promise of continuity that God originally gave to David himself [מצודת ציון].