2 Samuel 11:2-12

2 One evening David got up from his bed and walked around on the roof of the palace. From the roof he saw a woman bathing. The woman was very beautiful,
3 and David sent someone to find out about her. The man said, “She is Bathsheba, the daughter of Eliam and the wife of Uriah the Hittite.”
4 Then David sent messengers to get her. She came to him, and he slept with her. (Now she was purifying herself from her monthly uncleanness.) Then she went back home.
5 The woman conceived and sent word to David, saying, “I am pregnant.”
6 So David sent this word to Joab: “Send me Uriah the Hittite.” And Joab sent him to David.
7 When Uriah came to him, David asked him how Joab was, how the soldiers were and how the war was going.
8 Then David said to Uriah, “Go down to your house and wash your feet.” So Uriah left the palace, and a gift from the king was sent after him.
9 But Uriah slept at the entrance to the palace with all his master’s servants and did not go down to his house.
10 David was told, “Uriah did not go home.” So he asked Uriah, “Haven’t you just come from a military campaign? Why didn’t you go home?”
11 Uriah said to David, “The ark and Israel and Judah are staying in tents,a and my commander Joab and my lord’s men are camped in the open country. How could I go to my house to eat and drink and make love to my wife? As surely as you live, I will not do such a thing!”
12 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.