Passage
Then David the king went in and sat before Yahweh, and he said, “Who am I, O Lord Yahweh, and what is my house, that You have brought me this far?
Then David the king went in and sat before Yahweh, and he said, “Who am I, O Lord Yahweh, and what is my house, that You have brought me this far?
2 Samuel 7:16 And your house and your kingdom shall endure before Me forever; your throne shall be established forever.”’”
2 Samuel 7:17 According to all these words and according to all this vision, so Nathan spoke to David.
2 Samuel 7:18 Then David the king went in and sat before Yahweh, and he said, “Who am I, O Lord Yahweh, and what is my house, that You have brought me this far?
2 Samuel 7:19 And yet this was a small thing in Your eyes, O Lord Yahweh, for You have spoken also of the house of Your slave concerning the distant future. And this is the law of man, O Lord Yahweh.
2 Samuel 7:20 And again what more can David say to You? And You know Your slave, O Lord Yahweh!
The verse centers on "david", "king", "went", "before", "yahweh", "said", and "lord". It is saying that the verse draws attention to "david" and "king", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 17's "According to all these words and according..." into verse 19's "And yet this was a small thing...", so "david" and "king" belong inside that flow. In 2 Samuel context, the local focus is covenant, worship, and faithfulness.
A plain takeaway is to answer the verse's own emphasis on "david" and "king" with trust shaped by these words, not by a vague optimism outside the passage.