2 Samuel 11:2-12

2 It happened, late one afternoon, when David arose from his couch and was walking upon the roof of the king's house, that he saw from the roof a woman bathing; and the woman was very beautiful.
3 And David sent and inquired about the woman. And one said, "Is not this Bathshe'ba, the daughter of Eli'am, the wife of Uri'ah the Hittite?"
4 So David sent messengers, and took her; and she came to him, and he lay with her. (Now she was purifying herself from her uncleanness.) Then she returned to her house.
5 And the woman conceived; and she sent and told David, "I am with child."
6 So David sent word to Jo'ab, "Send me Uri'ah the Hittite." And Jo'ab sent Uri'ah to David.
7 When Uri'ah came to him, David asked how Jo'ab was doing, and how the people fared, and how the war prospered.
8 Then David said to Uri'ah, "Go down to your house, and wash your feet." And Uri'ah went out of the king's house, and there followed him a present from the king.
9 But Uri'ah slept at the door of the king's house with all the servants of his lord, and did not go down to his house.
10 When they told David, "Uri'ah did not go down to his house," David said to Uri'ah, "Have you not come from a journey? Why did you not go down to your house?"
11 Uri'ah said to David, "The ark and Israel and Judah dwell in booths; and my lord Jo'ab and the servants of my lord are camping in the open field; shall I then go to my house, to eat and to drink, and to lie with my wife? As you live, and as your soul lives, I will not do this thing."
12 Then David said to Uri'ah, "Remain here today also, and tomorrow I will let you depart." So Uri'ah remained in Jerusalem that day, and the next.