David faces a devastating judgment that directly mirrors his own sense of justice. After hearing the parable of the poor man's lamb, David angrily declared that the greedy rich man deserved to die. This very ruling now dictates his own fate. Because of his harsh verdict, a severe penalty is directed back at him in the form of a lasting curse. The sword will never depart from his household, meaning the shadow of death will haunt his family across generations, with many of his descendants destined to die violently [מלבי״ם, מצודת דוד, ביאור שטיינזלץ].
The severity of this punishment stems from the fact that David's actions demonstrated a deep disrespect for God. For a person of David's extraordinary spiritual standing, failing to exercise self-control and restraint is not just a personal flaw; it is viewed as an act of direct contempt toward God Himself [מלבי״ם, ביאור שטיינזלץ].
Furthermore, taking another man's wife created a massive public scandal. From a strictly legal standpoint, the action might have been technically permitted, as soldiers of that era routinely provided their wives with divorce documents before leaving for the battlefield. However, the general public did not view the situation through the lens of legal technicalities. In the eyes of the people, the king's actions appeared deeply corrupt, causing a public desecration of God's name. It is because of this widespread scandal and the resulting damage to God's honor that David is held so severely accountable [חומת אנך, מצודת דוד].