NET
5 He did this because David had done what he approved and had not disregarded any of his commandments his entire lifetime, except for the incident involving Uriah the Hittite.
Darby
5 because David did that which was right in the sight of Jehovah, and turned not aside from anything that he commanded him all the days of his life, except in the matter of Urijah the Hittite.
KJV
5 Because David did [that which was] right in the eyes of the LORD, and turned not aside from any [thing] that he commanded him all the days of his life, save only in the matter of Uriah the Hittite.