2nd book of Samuel 12:7-10.13.
Nathan said to David: “Thus says the LORD God of Israel: ‘I anointed you king of Israel. I rescued you from the hand of Saul.
I gave you your lord’s house and your lord’s wives for your own. I gave you the house of Israel and of Judah. And if this were not enough, I could count up for you still more.
Why have you spurned the LORD and done evil in his sight? You have cut down Uriah the Hittite with the sword; you took his wife as your own, and him you killed with the sword of the Ammonites.
Now, therefore, the sword shall never depart from your house, because you have despised me and have taken the wife of Uriah to be your wife.’
Then David said to Nathan, “I have sinned against the LORD.” Nathan answered David: “The LORD on his part has forgiven your sin: you shall not die.