2 God appeared to Solomon again, just as he had appeared to him at Gibeon. 3 And God said to him, "I've listened to and received all your prayers, your ever-so-passionate prayers. I've sanctified this Temple that you have built: My Name is stamped on it forever; my eyes are on it and my heart in it always. 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. 8 And this Temple, splendid as it now is, will become an object of contempt; visitors will shake their heads, saying, 'Whatever happened here? What's the story behind these ruins?' 9 Then they'll be told, 'The people who used to live here betrayed their God, the very God who rescued their ancestors from Egypt; they took up with alien gods, worshiping and serving them. That's what's behind this God-visited devastation.'"
Matthew Henry's Commentary on 1 Kings 9:2-9
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.