The climax of the confrontation between the king and the prophet is defined by an immediate admission of guilt and a swift divine response. King David takes full responsibility for his actions. His greatness lies in his willingness to confess instantly and wholeheartedly, offering no excuses. This stands in sharp contrast to King Saul, who looked for justifications when confronted with his own failings [מלבי״ם, ביאור שטיינזלץ, אלשיך].
In his admission of guilt, David directs his confession solely to God, notably omitting any mention of the harm caused to Uriah. The primary approach among commentators is that the core issue addressed here is the public desecration of God's name. Because the events occurred in secret, Uriah was already dead, and Bathsheba was a willing participant, the offense remained strictly between David and God. A public apology at Uriah's grave would have caused further desecration of God's name and damaged the honor of the monarchy [אברבנאל]. Another perspective suggests that the offense was purely against Heaven because Uriah was actually guilty of rebellion against the crown and had already given Bathsheba a bill of divorce [אלשיך]. Alternatively, David may have been separating his offenses: he had already accepted the punishment of the sword for causing Uriah's death, and was now seeking specific atonement for the matter of Bathsheba, which was a sin directly against God [מצודת דוד].
The divine response to this confession is instant and operates on the principle of measure for measure. Just as David confessed without delay, God accepted his repentance immediately [רד״ק]. Furthermore, because David's sincere admission eased the burden of sin that pained the Divine Presence, God in turn eased the weight of his punishment [חומת אנך]. As a result, the prophet informs David that God has completely removed and forgiven his sin [מצודת ציון, ביאור שטיינזלץ].
Although David's actions warranted the death penalty or the loss of his soul in Hell, God softened the judgment and spared his life [רד״ק, מצודת דוד]. The curse of the sword would not strike David himself [ביאור שטיינזלץ]. However, this did not mean a total exemption from consequences. The death penalty originally decreed upon him was converted and carried out through other worldly tragedies. This included the death of the child born to Bathsheba [אלשיך, רד״ק], as well as severe ongoing suffering, such as the rebellion of his son Absalom and a sword that would never leave his household [רד״ק].
While most commentators understand that God's decision to remove the sin was a direct result of the confession, another view argues that the choice to spare David's life was made even before he confessed, stemming entirely from God's mercy. According to this understanding, the confession did not cancel the physical and familial punishments that had been decreed. Instead, it achieved profound spiritual atonement, removed the heavenly accusations against him, and ultimately allowed David to return to his kingship [אברבנאל, אלשיך].