1 Kings 15:5 YLT

5 in that David did that which [is] right in the eyes of Jehovah, and turned not aside from all that He commanded him all days of his life -- only in the matter of Uriah the Hittite;