Passage
And what nation is there upon earth, as thy people Israel, whom God went to redeem for a people to himself, and to make him a name, and to do for them great and terrible things, upon the earth, before the face of thy people, whom thou redeemedst to thyself out of Egypt, from the nations and their gods.
Nearby Context
2 Samuel 7:21 For thy word's sake, and according to thy own heart thou has done all these great things, so that thou wouldst make it known to thy servant.
2 Samuel 7:22 Therefore thou art magnified, O Lord God, because there is none like to thee, neither is there any God besides thee, in all the things that we have heard with our ears.
2 Samuel 7:23 And what nation is there upon earth, as thy people Israel, whom God went to redeem for a people to himself, and to make him a name, and to do for them great and terrible things, upon the earth, before the face of thy people, whom thou redeemedst to thyself out of Egypt, from the nations and their gods.
2 Samuel 7:24 For thou hast confirmed to thyself thy people Israel to be an everlasting people: and thou, O Lord God, art become their God.
2 Samuel 7:25 And now, O Lord God, raise up for ever the word that thou hast spoken, concerning thy servant and concerning his house: and do as thou hast spoken,
Study Lenses
The verse centers on "nation", "upon", "earth", "people", "israel", "went", and "redeem". It is saying that the verse draws attention to "nation" and "upon", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 22's "Therefore thou art magnified O Lord God..." into verse 24's "For thou hast confirmed to thyself thy...", so "nation" and "upon" 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 "nation" and "upon" with trust shaped by these words, not by a vague optimism outside the passage.