1 Kings 9:4-5
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.’