Jeremiah 33:21-26 NIRV

21 Only then could my covenant with my servant David be broken. Only then could my covenant with the Levites who serve me as priests be broken. Only then would David no longer have someone from his family line to rule on his throne.
22 "Here is what I will do for my servant David. And here is what I will do for the Levites who serve me. I will make their children after them as many as the stars in the sky. And I will make them as many as the grains of sand on the seashore. It will be impossible to count them."
23 A message came to me from the Lord. He said,
24 "Haven't you noticed what these people are saying? They say, 'The LORD once chose the two kingdoms of Israel and Judah. But now he has turned his back on them.' So they hate my people. They do not think of them as a nation anymore.
25 "I say, 'What if I had not made my covenant with day and night? What if I had not established the laws of heaven and earth?
26 Only then would I turn my back on the children of Jacob and my servant David. Only then would I not choose one of David's sons to rule over the children of Abraham, Isaac and Jacob. But I will bless my people with great success again. I will love them with tender love.' "