1 Kings 9:4

4 And as for you, if you will walk before me, as David your father walked, with integrity of heart and uprightness, doing according to all that I have commanded you, and keeping my statutes and my ordinances,

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 a second time, as he had appeared to him at Gibeon.
3 And the LORD said to him, "I have heard your prayer and your supplication, which you have made before me; I have consecrated this house which you have built, and put my name there for ever; my eyes and my heart will be there for all time.
4 And as for you, if you will walk before me, as David your father walked, with integrity of heart and uprightness, doing according to all that I have commanded you, and keeping my statutes and my ordinances,
5 then I will establish your royal throne over Israel for ever, as I promised David your father, saying, 'There shall not fail you a man upon the throne of Israel.'
6 But if you turn aside from following me, you or your children, and do not keep my commandments and my statutes which I have set before you, but go and serve other gods and worship them,
Revised Standard Version of the Bible, copyright 1952 [2nd edition, 1971] by the Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.