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 rules,
God had given a real answer to Solomon's prayer, and tokens of his acceptance of it, immediately, by the fire from heaven which consumed the sacrifices (as we find Ch2 7:1); but here we have a more express and distinct answer to it. Observe, I. In what way God gave him this answer.
Commenting on 1 Kings 9:1-9
And if thou wilt walk before me, as David thy father walked, in integrity of heart, and in uprightness..... 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...
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, [and] wilt keep my statutes and my judgments: (a) If you walk in my fear, and withdraw yourself from the common manner of men, who follow their sensualities.