1 Kings 9:4

4 “As for you, if you will follow me with integrity and godliness, as David your father did, obeying all my commands, decrees, and regulations,

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 Then the LORD appeared to Solomon a second time, as he had done before at Gibeon.
3 The LORD said to him, “I have heard your prayer and your petition. I have set this Temple apart to be holy—this place you have built where my name will be honored forever. I will always watch over it, for it is dear to my heart.
4 “As for you, if you will follow me with integrity and godliness, as David your father did, obeying all my commands, decrees, and regulations,
5 then I will establish the throne of your dynasty over Israel forever. For I made this promise to your father, David: ‘One of your descendants will always sit on the throne of Israel.’
6 “But if you or your descendants abandon me and disobey the commands and decrees I have given you, and if you serve and worship other gods,
Holy Bible. New Living Translation copyright© 1996, 2004, 2007, 2013 by Tyndale House Foundation. Used by permission of Tyndale House Publishers Inc., Carol Stream, Illinois 60188. All rights reserved.