Jeremiah 33:14-26 New Revised Standard Version (NRSV)
The Righteous Branch and the Covenant with David
14 The days are surely coming, says the Lord, when I will fulfill the promise I made to the house of Israel and the house of Judah. 15 In those days and at that time I will cause a righteous Branch to spring up for David; and he shall execute justice and righteousness in the land. 16 In those days Judah will be saved and Jerusalem will live in safety. And this is the name by which it will be called: “The Lord is our righteousness.”
17 For thus says the Lord: David shall never lack a man to sit on the throne of the house of Israel, 18 and the levitical priests shall never lack a man in my presence to offer burnt offerings, to make grain offerings, and to make sacrifices for all time.
19 The word of the Lord came to Jeremiah: 20 Thus says the Lord: If any of you could break my covenant with the day and my covenant with the night, so that day and night would not come at their appointed time, 21 only then could my covenant with my servant David be broken, so that he would not have a son to reign on his throne, and my covenant with my ministers the Levites. 22 Just as the host of heaven cannot be numbered and the sands of the sea cannot be measured, so I will increase the offspring of my servant David, and the Levites who minister to me.
23 The word of the Lord came to Jeremiah: 24 Have you not observed how these people say, “The two families that the Lord chose have been rejected by him,” and how they hold my people in such contempt that they no longer regard them as a nation? 25 Thus says the Lord: Only if I had not established my covenant with day and night and the ordinances of heaven and earth, 26 would I reject the offspring of Jacob and of my servant David and not choose any of his descendants as rulers over the offspring of Abraham, Isaac, and Jacob. For I will restore their fortunes, and will have mercy upon them.