2 Samuel 11:24

And the shooters shot from off the wall upon thy servants; and some of the king’s servants be dead, and thy servant Uriah the Hittite is dead also.

The verse records the messenger's report that shooters from the wall killed some of the king's servants in battle, including Uriah the Hittite. Uriah's death resulted from David's order to Joab to place him where the fighting was fiercest and then withdraw support so the Ammonites would kill him. The report was carefully worded to disclose Uriah's death without implicating Joab or David in carrying out David's order. Joab's obedience to the king rather than to God in this matter was sin, showing that human authority must be exercised in harmony with God's law and a command contrary to God's law must not be obeyed.

The deaths of Uriah and the other soldiers were David's grievous crime and murder against Uriah, part of his offense involving Bath-sheba. David's idleness left him open to the wrongdoing that led to Uriah's murder, and occupying himself in useful work would have kept him from committing it. The episode involved David's indulgence of appetite and passion, through which he incurred God's displeasure. David's fall sullied a once-fair reputation; by turning from God's Word and its teachings he became vulnerable to choosing human wisdom and refuge in lies.

God did not excuse or justify David but sent Nathan to rebuke him and pronounced punishment for his wrongdoing, showing that violating God's will brings retribution. David's repentance and humble confession brought forgiveness and spared his life from part of the threatened calamity. David's grave failure is recorded, not concealed because he was favored by God, as a warning and lesson showing that God's people can fall into sin and that their failures are preserved for later generations to learn from.