Deuteronomy 5:32; 1 Kings 15:5

32 You shall be careful therefore to do as the Lord your God has commanded you. wYou shall not turn aside to the right hand or to the left.


because zDavid 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, aexcept in the matter of Uriah the Hittite.