If thou wilt walk before me, &c. He promises to establish and perpetuate Solomon's kingdom, on condition that he persevered in his duty; assuring him, that if he hoped for the benefit of God's covenant with David, he must imitate the example of David.
Related Commentaries of 2 Chronicles 7:17
2 Chronicles 7:17-18
17 And as for thee, if thou wilt walk before me, as David thy father walked, and do according to all that I have commanded thee, and shalt observe my statutes and my judgments;
18 Then will I stablish the throne of thy kingdom, according as I have covenanted with David thy father, saying, There shall not fail thee a man to be ruler in Israel.