2 Samuel 11:19-27

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 Abim'elech the son of Jerub'besheth? Did not a woman cast an upper millstone upon him from the wall, so that he died at Thebez? Why did you go so near the wall?' then you shall say, 'Your servant Uri'ah the Hittite is dead also.'"
22 So the messenger went, and came and told David all that Jo'ab 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 Uri'ah the Hittite is dead also."
25 David said to the messenger, "Thus shall you say to Jo'ab, 'Do not let this matter trouble you, for the sword devours now one and now another; strengthen your attack upon the city, and overthrow it.' And encourage him."
26 When the wife of Uri'ah heard that Uri'ah her husband was dead, she made lamentation for her husband.
27 And when the mourning was over, David sent and brought her to his house, and she became his wife, and bore him a son. But the thing that David had done displeased the LORD.