Passage
David said to Nathan, “I have sinned against Yahweh.” Nathan said to David, “Yahweh also has put away your sin. You will not die.
David said to Nathan, “I have sinned against Yahweh.” Nathan said to David, “Yahweh also has put away your sin. You will not die.
2 Samuel 12:11 “This is what Yahweh says: ‘Behold, I will raise up evil against you out of your own house; and I will take your wives before your eyes, and give them to your neighbor, and he will lie with your wives in the sight of this sun.
2 Samuel 12:12 For you did this secretly, but I will do this thing before all Israel, and before the sun.’”
2 Samuel 12:13 David said to Nathan, “I have sinned against Yahweh.” Nathan said to David, “Yahweh also has put away your sin. You will not die.
2 Samuel 12:14 However, because by this deed you have given great occasion to Yahweh’s enemies to blaspheme, the child also who is born to you will surely die.”
2 Samuel 12:15 Nathan departed to his house. Yahweh struck the child that Uriah’s wife bore to David, and it was very sick.
The verse centers on "david", "said", "nathan", "sinned", "against", and "yahweh". It is saying that the verse draws attention to "david" and "said", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 12's "For you did this secretly but I..." into verse 14's "However because by this deed you have...", so "david" and "said" 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 "said" with trust shaped by these words, not by a vague optimism outside the passage.