John Gill's Bible Commentary Ver. 5. Because David did that which was right in the eyes of the Lord , etc.] With respect to worship: and turned not aside from anything that he commanded him all the days of his life; especially in matters of religion, nor even in his moral walk and conversation, deliberately, studiously, and with design: save only in the matter of Uriah the Hittite ; the killing of him, and other sins which led on to it, and were in connection with it; Abarbinel thinks, because the affair of Bathsheba is not mentioned, that was not reckoned to David as a sin; but no doubt it was, and is included here.
Matthew Henry Commentary
Verses 1-8 - Abijam's heart was not perfect with the Lord his God; he wante sincerity; he began well, but he fell off, and walked in all the sin of his father, following his bad example, though he had seen the ba consequences of it. David's family was continued as a lamp in Jerusalem, to maintain the true worship of God there, when the light of Divine truth was extinguished in all other places. The Lord has stil taken care of his cause, while those who ought to have been serviceabl thereto have lived and perished in their sins. The Son of David wil still continue a light to his church, to establish it in truth an righteousness to the end of time. There are two kinds of fulfilling the law, one legal, the other by the gospel. Legal is, when men do all things required in the law, and that by themselves. None ever thu fulfilled the law but Christ, and Adam before his fall. The gospe manner of fulfilling the law is, to believe in Christ who fulfilled the law for us, and to endeavour in the whole man to obey God in all his precepts. And this is accepted of God, as to all those that are in Christ. Thus David and others are said to fulfil the law.
Original Hebrew אשׁר834 עשׂה6213 דוד1732 את853 הישׁר3477 בעיני5869 יהוה3068 ולא3808 סר5493 מכל3605 אשׁר834 צוהו6680 כל3605 ימי3117 חייו2416 רק7535 בדבר1697 אוריה223 החתי׃2850