2 Samuel 11:27

27And when the mourning was over, David sent and brought her to his house, and ashe became his wife and bore him a son. But the thing that David had done displeased the Lord.

1 Kings 15:5

5because bDavid did what was right in the eyes of the Lord and did not turn aside from anything that he commanded him all the days of his life, cexcept in the matter of Uriah the Hittite.
Copyright information for ESV