So Solomon finished building the Temple of the LORD, as well as the royal palace. He completed everything he had planned to do.
Then the LORD appeared to Solomon a second time, as he had done before at Gibeon.
The LORD said to him, "I have heard your prayer and your request. I have set apart this Temple you have built so that my name will be honored there forever. I will always watch over it and care for it.
As for you, if you will follow me with integrity and godliness, as David your father did, always obeying my commands and keeping my laws and regulations,
then I will establish the throne of your dynasty over Israel forever. For I made this promise to your father, David: 'You will never fail to have a successor on the throne of Israel.'"
"But if you or your descendants abandon me and disobey my commands and laws, and if you go and worship other gods,
then I will uproot the people of Israel from this land I have given them. I will reject this Temple that I have set apart to honor my name. I will make Israel an object of mockery and ridicule among the nations.
And though this Temple is impressive now, it will become an appalling sight for all who pass by. They will scoff and ask, 'Why did the LORD do such terrible things to his land and to his Temple?'
And the answer will be, 'Because his people forgot the LORD their God, who brought their ancestors out of Egypt, and they worshiped other gods instead. That is why the LORD has brought all these disasters upon them.'"