2 Samuel 11:14-24English Standard Version (ESV)
14 In the morning David wrote a letter to Joab and sent it by the hand of Uriah. 15 In the letter he wrote, “Set Uriah in the forefront of the hardest fighting, and then draw back from him, that he may be struck down, and die.” 16 And as Joab was besieging the city, he assigned Uriah to the place where he knew there were valiant men. 17 And the men of the city came out and fought with Joab, and some of the servants of David among the people fell. Uriah the Hittite also died. 18 Then Joab sent and told David all the news about the fighting. 19 And he instructed the messenger, “When you have finished telling all the news about the fighting to the king, 20 then, if the king's anger rises, and if he says to you, ‘Why did you go so near the city to fight? Did you not know that they would shoot from the wall? 21 Who killed Abimelech the son of Jerubbesheth? Did not a woman cast an upper millstone on him from the wall, so that he died at Thebez? Why did you go so near the wall?’ then you shall say, ‘Your servant Uriah the Hittite is dead also.’”
22 So the messenger went and came and told David all that Joab had sent him to tell. 23 The messenger said to David, “The men gained an advantage over us and came out against us in the field, but we drove them back to the entrance of the gate. 24 Then the archers shot at your servants from the wall. Some of the king's servants are dead, and your servant Uriah the Hittite is dead also.”
2 Samuel 11:14-24New International Version (NIV)
14 In the morning David wrote a letter to Joab and sent it with Uriah. 15 In it he wrote, “Put Uriah out in front where the fighting is fiercest. Then withdraw from him so he will be struck down and die.”
16 So while Joab had the city under siege, he put Uriah at a place where he knew the strongest defenders were. 17 When the men of the city came out and fought against Joab, some of the men in David’s army fell; moreover, Uriah the Hittite died.
18 Joab sent David a full account of the battle. 19 He instructed the messenger: “When you have finished giving the king this account of the battle, 20 the king’s anger may flare up, and he may ask you, ‘Why did you get so close to the city to fight? Didn’t you know they would shoot arrows from the wall? 21 Who killed Abimelek son of Jerub-Besheth[a]? Didn’t a woman drop an upper millstone on him from the wall, so that he died in Thebez? Why did you get so close to the wall?’ If he asks you this, then say to him, ‘Moreover, your servant Uriah the Hittite is dead.’”
22 The messenger set out, and when he arrived he told David everything Joab had sent him to say. 23 The messenger said to David, “The men overpowered us and came out against us in the open, but we drove them back to the entrance of the city gate. 24 Then the archers shot arrows at your servants from the wall, and some of the king’s men died. Moreover, your servant Uriah the Hittite is dead.”