1 Kings 15:5

English Standard Version

5 because 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, except in the matter of Uriah the Hittite. (2Sa 11:4; 2Sa 11:15; 2Sa 12:9; 1Ki 9:4; 1Ki 14:8)

New International Version

5 For David had done what was right in the eyes of the Lord and had not failed to keep any of the Lord’s commands all the days of his life – except in the case of Uriah the Hittite.

New International Reader’s Version

5 David had done what was right in the sight of the LORD. He had kept all the LORD’s commands. He had obeyed them all the days of his life. But he hadn’t obeyed the LORD in the case of Uriah, the Hittite.

King James Version

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.