1 Kings 8:25-26

25Now therefore, O Lord, God of Israel, keep for your servant David my father what you have promised him, saying, a‘You shall not lack a man to sit before me on the throne of Israel, if only your sons pay close attention to their way, to walk before me as you have walked before me.’ 26 bNow therefore, O God of Israel, let your word be confirmed, which you have spoken to your servant David my father.

1 Kings 9:4-5

4And as for you, if you will cwalk before me, das David your father walked, with integrity of heart and uprightness, doing according to all that I have commanded you, and keeping my statutes and my rules, 5 ethen I will establish your royal throne over Israel forever, as I promised David your father, saying, ‘You shall not lack a man on the throne of Israel.’
Copyright information for ESV