Passage
Thus saith the Lord: Behold, I will raise up evil against thee out of thy own house, and I will take thy wives before thy eyes and give them to thy neighbour, and he shall lie with thy wives in the sight of this sun.
Thus saith the Lord: Behold, I will raise up evil against thee out of thy own house, and I will take thy wives before thy eyes and give them to thy neighbour, and he shall lie with thy wives in the sight of this sun.
2 Samuel 12:9 Why therefore hast thou despised the word of the Lord, to do evil in my sight? Thou hast killed Urias the Hethite with the sword, and hast taken his wife to be thy wife, and hast slain him with the sword of the children of Ammon.
2 Samuel 12:10 Therefore the sword shall never depart from thy house, because thou hast despised me, and hast taken the wife of Urias the Hethite to be thy wife.
2 Samuel 12:11 Thus saith the Lord: Behold, I will raise up evil against thee out of thy own house, and I will take thy wives before thy eyes and give them to thy neighbour, and he shall lie with thy wives in the sight of this sun.
2 Samuel 12:12 For thou didst it secretly: but I will do this thing in the sight of all Israel, and in the sight of the sun.
2 Samuel 12:13 And David said to Nathan: I have sinned against the Lord. And Nathan said to David: The Lord also hath taken away thy sin: thou shalt not die.
The verse centers on "thus", "saith", "lord", "behold", "raise", "evil", "against", and "thee". It is saying that the verse draws attention to "thus" and "saith", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 10's "Therefore the sword shall never depart from..." into verse 12's "For thou didst it secretly but I...", so "thus" and "saith" 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 "thus" and "saith" with trust shaped by these words, not by a vague optimism outside the passage.