When Uriah came to him, David asked him how Joab was, how the soldiers were and how the war was going.
Then David said to Uriah, "Go down to your house and wash your feet."1 So Uriah left the palace, and a gift from the king was sent after him.
References for 2 Samuel 11:8
But Uriah slept at the entrance to the palace with all his master's servants and did not go down to his house.
When David was told, "Uriah did not go home," he asked him, "Haven't you just come from a distance? Why didn't you go home?"
Uriah said to David, "The ark2 and Israel and Judah are staying in tents, and my master Joab and my lord's men are camped in the open fields. How could I go to my house to eat and drink and lie3 with my wife? As surely as you live, I will not do such a thing!"
References for 2 Samuel 11:11
Then David said to him, "Stay here one more day, and tomorrow I will send you back." So Uriah remained in Jerusalem that day and the next.
At David's invitation, he ate and drank with him, and David made him drunk. But in the evening Uriah went out to sleep on his mat among his master's servants; he did not go home.
In the morning David wrote a letter4 to Joab and sent it with Uriah.
References for 2 Samuel 11:14
In it he wrote, "Put Uriah in the front line where the fighting is fiercest. Then withdraw from him so he will be struck down5 and die.6"
References for 2 Samuel 11:15
So while Joab had the city under siege, he put Uriah at a place where he knew the strongest defenders were.
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.