Jeremiah 33:21-26 CJB

21 then my covenant with my servant David also can be broken, so that he will not have a descendant to reign from his throne or L'vi'im who are cohanim to minister to me.
22 To the degree that the armies of heaven are past counting and the sand by the sea past measuring, I will increase the descendants of my servant David and the L'vi'im ministering to me.'"
23 This word of ADONAI came to Yirmeyahu:
24 "Haven't you noticed that these people are saying, 'ADONAI has rejected the two families he chose'? Hence they despise my people and no longer look at them as a nation.
25 Here is what ADONAI says: 'If I have not established my covenant with day and night and fixed the laws for sky and earth,
26 then I will also reject the descendants of Ya'akov and of my servant David, not choosing from his descendants people to rule over the descendants of Avraham, Yis'chak and Ya'akov. For I will cause their captives to come back, and I will show them compassion.'"