King David's secret command is quietly carried out on the front lines of war, where the commander Joab orchestrates the death of Uriah the Hittite. The execution is carefully disguised as a routine military operation during a tense standoff. The Israelite army had surrounded the city of Rabbath Ammon, cutting off all movement in and out [מצודת דוד, ביאור שטיינזלץ], while waiting for the perfect moment to strike [רד״ק]. During such blockades, it was common for the trapped defenders to suddenly rush outside the walls and attack the besieging forces. Anticipating this, Joab positioned Uriah precisely where he knew the enemy's strongest and most capable warriors were stationed [מצודת דוד, ביאור שטיינזלץ].
This maneuver appeared completely natural and raised no suspicion. Tactically, it makes perfect sense to match elite soldiers against an enemy's best fighters, and Uriah was well known as one of David's top thirty-seven warriors [מלבי״ם].
Commentators explore why Joab would comply with such an unusual and indirect death sentence. David had entrusted the sealed letter to Uriah himself, confident that his loyal soldier would not open a dispatch meant for the army commander. Upon receiving the order, Joab simply assumed that the king had serious and justified reasons for the command [ביאור שטיינזלץ]. He may have deduced that Uriah had committed treason and was sentenced to death, but had begged the king for the dignity of dying in battle rather than facing a public execution. To Joab, this theory perfectly explained why Uriah was allowed to deliver his own death warrant.
However, the Sages sharply criticize Joab for this line of thinking. They argue it was deeply improper for him to carry out a lethal command that seemingly violated the Torah based on nothing more than personal assumptions and guesswork. This moral failure falls on Joab, even if King David was technically exempt from legal punishment due to Uriah's status as a rebel against the crown [חומת אנך].