3 And the Lord said to him, "I have heard your prayer and your supplication, which you have made before me; I have consecrated this house which you have built, and put my name there for ever; my eyes and my heart will be there for all time. 4 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 ordinances, 5 then I will establish your royal throne over Israel for ever, as I promised David your father, saying, 'There shall not fail you a man upon the throne of Israel.' 6 But if you turn aside from following me, you or your children, and do not keep my commandments and my statutes which I have set before you, but go and serve other gods and worship them, 7 then I will cut off Israel from the land which I have given them; and the house which I have consecrated for my name I will cast out of my sight; and Israel will become a proverb and a byword among all peoples. 8 And this house will become a heap of ruins; everyone passing by it will be astonished, and will hiss; and they will say, 'Why has the Lord done thus to this land and to this house?' 9 Then they will say, 'Because they forsook the Lord their God who brought their fathers out of the land of Egypt, and laid hold on other gods, and worshiped them and served them; therefore the Lord has brought all this evil upon them.'"
Matthew Henry's Commentary on 1 Kings 9:3-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.