1 Kings 15:5

Amplified Bible (AMP)
because David did what was right in the eyes of the Lord, and had not turned aside from anything that He commanded him all the days of his life, except in the matter of [the betrayal of] Uriah the Hittite.

Read 1 Kings 15:5 in other translations