4 As for you, if you live in my presence as your father David lived, pure in heart and action, living the life I've set out for you, attentively obedient to my guidance and judgments, 5 then I'll back your kingly rule over Israel, make it a sure thing on a solid foundation. The same guarantee I gave David your father I'm giving you: 'You can count on always having a descendant on Israel's throne.' 6 "But if you or your sons betray me, ignoring my guidance and judgments, taking up with alien gods by serving and worshiping them, 7 then the guarantee is off: I'll wipe Israel right off the map and repudiate this Temple I've just sanctified to honor my Name. And Israel will become nothing but a bad joke among the peoples of the world.

Matthew Henry's Commentary on 1 Kings 9:4-7

Commentary on 1 Kings 9:1-9

(Read 1 Kings 9:1-9)

God warned Solomon, now he had newly built and dedicated the temple, that he and his people might not be high-minded, but fear. After all the services we can perform, we stand upon the same terms with the Lord as before. Nothing can purchase for us liberty to sin, nor would the true believer desire such a licence. He would rather be chastened of the Lord, than be allowed to go on with ease and prosperity in sin.