2 Chronicles 7:17-22

7:17 You must serve me as your father David did. Do everything I commanded and obey my rules and regulations. 7:18 Then I will establish your dynasty, just as I promised your father David, ‘You will not fail to have a successor ruling over Israel.’

7:19 “But if you people ever turn away from me, fail to obey the regulations and rules I instructed you to keep, and decide to serve and worship other gods, 7:20 then I will remove you from my land I have given you, I will abandon this temple I have consecrated with my presence, and I will make you an object of mockery and ridicule among all the nations. 7:21 As for this temple, which was once majestic, everyone who passes by it will be shocked and say, ‘Why did the Lord do this to this land and this temple?’ 7:22 Others will then answer, ‘Because they abandoned the Lord God of their ancestors, who led them out of Egypt. They embraced other gods whom they worshiped and served. That is why he brought all this disaster down on them.’”