2 that Jehovah appeared to Solomon the second time, as he had appeared to him at Gibeon. 3 And Jehovah said to him, I have heard thy prayer and thy supplication which thou hast made before me: I have hallowed this house, which thou hast built, to put my name there for ever; and mine eyes and my heart shall be there perpetually. 4 And [as for] thee, 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 mine ordinances; 5 then will I establish the throne of thy kingdom over Israel for ever, as I promised to David thy father, saying, There shall not fail thee a man upon the throne of Israel. 6 [But] if ye shall at all turn from following me, ye or your children, and will not keep my commandments, my statutes which I have set before you, but go and serve other gods, and worship them; 7 then will I cut off Israel out of the land which I have given them; and the house, which I have hallowed to my name, will I cast out of my sight; and Israel shall be a proverb and a by word among all peoples; 8 and this house, [which] is high, every one that passes by it shall be astonished at, and shall hiss, and they shall say, Why has Jehovah done thus to this land and to this house? 9 And they shall say, Because they forsook Jehovah their God, who brought forth their fathers out of the land of Egypt, and have attached themselves to other gods, and have worshipped them and served them; therefore has Jehovah brought upon them all this evil.
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.