1 Kings 9:4-7

9:4 You must serve me with integrity and sincerity, just as your father David did. Do everything I commanded and obey my rules and regulations. 9:5 Then I will allow your dynasty to rule over Israel permanently, just as I promised your father David, ‘You will not fail to have a successor on the throne of Israel.’

9:6 “But if you or your sons 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, 9:7 then I will remove Israel from the land I have given them, I will abandon this temple I have consecrated with my presence, and Israel will be mocked and ridiculed among all the nations.