2 Samuel 11:4

11:4 David sent some messengers to get her. She came to him and he had sexual relations with her. (Now at that time she was in the process of purifying herself from her menstrual uncleanness.) Then she returned to her home.

2 Samuel 11:14-17

11:14 In the morning David wrote a letter to Joab and sent it with Uriah. 11:15 In the letter he wrote: “Station Uriah in the thick of the battle and then withdraw from him so he will be cut down and killed.”

11:16 So as Joab kept watch on the city, he stationed Uriah at the place where he knew the best enemy soldiers were. 11:17 When the men of the city came out and fought with Joab, some of David’s soldiers fell in battle. Uriah the Hittite also died.