1 Kings 15:5

5because a  David 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 b  except in the matter of Uriah the Hittite.
Copyright information for ESV