Passage
Thus says Yahweh, ‘Behold, I will raise up evil against you from your own household; I will even take your wives from before your sight and give them to your companion, and he will lie with your wives in the sight of this sun.
Thus says Yahweh, ‘Behold, I will raise up evil against you from your own household; I will even take your wives from before your sight and give them to your companion, and he will lie with your wives in the sight of this sun.
2 Samuel 12:9 Why have you despised the word of Yahweh by doing evil in His sight? You have struck down Uriah the Hittite with the sword, have taken his wife to be your wife, and have killed him with the sword of the sons of Ammon.
2 Samuel 12:10 So now, the sword shall never depart from your house, because you have despised Me and have taken the wife of Uriah the Hittite to be your wife.’
2 Samuel 12:11 Thus says Yahweh, ‘Behold, I will raise up evil against you from your own household; I will even take your wives from before your sight and give them to your companion, and he will lie with your wives in the sight of this sun.
2 Samuel 12:12 Indeed you did it secretly, but I will do this thing before all Israel, and before the sun.’”
2 Samuel 12:13 Then David said to Nathan, “I have sinned against Yahweh.” And Nathan said to David, “Yahweh also has taken away your sin; you shall not die.
The verse centers on "thus", "says", "yahweh", "behold", "raise", "evil", "against", and "household". It is saying that the verse draws attention to "thus" and "says", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 10's "So now the sword shall never depart..." into verse 12's "Indeed you did it secretly but I...", so "thus" and "says" 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 "says" with trust shaped by these words, not by a vague optimism outside the passage.