II Samuel 12:10-15 NKJV
Now therefore, the sword shall never depart from your house, because you have despised Me, and have taken the wife of Uriah the Hittite to be your wife.’ Thus says the LORD: ‘Behold, I will raise up adversity against you from your own house; and I will take your wives before your eyes and give them to your neighbor, and he shall lie with your wives in the sight of this sun. For you did it secretly, but I will do this thing before all Israel, before the sun.’ ”
So David said to Nathan, “I have sinned against the LORD.”
And Nathan said to David, “The LORD also has put away your sin; you shall not die. However, because by this deed you have given great occasion to the enemies of the LORD to blaspheme, the child also who is born to you shall surely die.” Then Nathan departed to his house.
NKJV: New King James Version