1 Kings 9:4

4 And if thou wilt walk before me as David, thy father walked, in integrity of heart and in uprightness, to do according to all that I have commanded thee, keeping my statutes and my rights,

1 Kings 9:4 Meaning and Commentary

1 Kings 9:4

And if thou wilt walk before me, as David thy father walked, in
integrity of heart, and in uprightness.
&c.] Who, though guilty of many sins and failings in life, yet was sincere and upright in the worship of God, never apostatized from it, or fell into idolatry, which is what is chiefly respected:

to do according to all that I have commanded thee, and wilt keep my
statutes and my judgments;
observe all the laws of God, moral, ceremonial, and judicial.

1 Kings 9:4 In-Context

2 the LORD appeared to Solomon the second time as he had appeared unto him at Gibeon.
3 And the LORD said unto him, I have heard thy prayer and thy supplication that thou hast made in my presence. I have sanctified this house, which thou hast built, to put my name there for ever, and my eyes and my heart shall be there all the days.
4 And if thou wilt walk before me as David, thy father walked, in integrity of heart and in uprightness, to do according to all that I have commanded thee, keeping my statutes and my rights,
5 then I will establish the throne of thy kingdom upon Israel for ever as I spoke unto David, thy father, saying, There shall not fail thee a man upon the throne of Israel.
6 But if ye shall obstinately turn from following me, ye or your sons, and will not keep my commandments and my statutes which I have set before you, but go and serve other gods and worship them,
The Jubilee Bible (from the Scriptures of the Reformation), edited by Russell M. Stendal, Copyright © 2000, 2001, 2010