2 Samuel 11:1-5 In the spring when kings march out to war, David sent Joab with his officers and all Israel. They destroyed the Ammonites and besieged Rabbah, but David remained in Jerusalem. One evening David got up from his bed and strolled around on the roof of the palace. From the roof he saw a woman bathing—a very beautiful woman. So David sent someone to inquire about her, and he reported, “This is Bathsheba, daughter of Eliam and wife of Uriah the Hittite.” David sent messengers to get her, and when she came to him, he slept with her. Now she had just been purifying herself from her uncleanness. Afterward, she returned home. The woman conceived and sent word to inform David: “I am pregnant.”
2 Samuel 12: 1-14 So the Lord sent Nathan to David. When he arrived, he said to him: There were two men in a certain city, one rich and the other poor. The rich man had a large number of sheep and cattle, but the poor man had nothing except one small ewe lamb that he had bought. He raised it, and it grew up, living with him and his children. It shared his meager food and drank from his cup; it slept in his arms, and it was like a daughter to him. Now a traveler came to the rich man, but the rich man could not bring himself to take one of his own sheep or cattle to prepare for the traveler who had come to him. Instead, he took the poor man’s lamb and prepared it for his guest.
David was infuriated with the man and said to Nathan: “As the Lord lives, the man who did this deserves to die! Because he has done this thing and shown no pity, he must pay four lambs for that lamb.”
Nathan replied to David, “You are the man! This is what the Lord God of Israel says: ‘I anointed you king over Israel, and I delivered you from the hand of Saul. I gave your master’s house to you and your master’s wives into your arms, and I gave you the house of Israel and Judah, and if that was not enough, I would have given you even more. Why then have you despised the command of the Lord by doing what I consider evil? You struck down Uriah the Hittite with the sword and took his wife as your own wife—you murdered him with the Ammonite’s sword. Now therefore, the sword will never leave your house because you despised Me and took the wife of Uriah the Hittite to be your own wife.’
“This is what the Lord says, ‘I am going to bring disaster on you from your own family: I will take your wives and give them to another before your very eyes, and he will sleep with them publicly. You acted in secret, but I will do this before all Israel and in broad daylight.’” David responded to Nathan, “I have sinned against the Lord.” Then Nathan replied to David, “The Lord has taken away your sin; you will not die. However, because you treated the Lord with such contempt in this matter, the son born to you will die.”