1 Kings 8:25
23 He prayed: “O Lord, God of Israel, there is no god like you in heaven above or on earth below! You maintain covenantal loyalty to your servants who obey you with sincerity. 24 You have kept your word to your servant, my father David; this very day you have fulfilled what you promised. 25 Now, O Lord, God of Israel, keep the promise you made to your servant, my father David, when you said, ‘You will never fail to have a successor ruling before me on the throne of Israel, provided that your descendants watch their step and serve me as you have done.’ 26 Now, O God of Israel, may the promise you made to your servant, my father David, be realized. 27 “God does not really live on the earth! Look, if the sky and the highest heaven cannot contain you, how much less this temple I have built!
Jeremiah 33:15
13 I, the Lord, say that shepherds will once again count their sheep as they pass into the fold. They will do this in all the towns in the hill country, the foothills, the Negev, the territory of Benjamin, the villages surrounding Jerusalem, and the towns of Judah.’ 14 “I, the Lord, affirm: ‘The time will certainly come when I will fulfill my gracious promise concerning the nations of Israel and Judah. 15 In those days and at that time I will raise up for them a righteous descendant of David. “‘He will do what is just and right in the land. 16 Under his rule Judah will enjoy safety and Jerusalem will live in security. At that time Jerusalem will be called “The Lord has provided us with justice.” 17 For I, the Lord, promise: “David will never lack a successor to occupy the throne over the nation of Israel.
Notes and References
"... The Davidic promise, perhaps surprisingly, remained very powerful for some of the people living in Babylonian exile during the sixth century BCE when a Davidic king was no longer on the throne of Israel. Promises of a righteous branch (קידצ חמצ) from the prophet Jeremiah (Jeremiah 23:5–6, 33:15–16) and similar language from the prophet Isaiah (Isaiah 11:1–5) are often supposed to have originated during the exilic period, although there is no scholarly consensus for their exact date of composition. It is clear, however, that these passages became an important source of hope for people during the time of the restoration towards the end of the sixth century BCE ... This aspect of the promise started to take on greater emphasis in some of the material written in the exilic period that describes a much earlier time. For example, when Solomon celebrates the building of the first Temple, it is framed as a fulfillment of the promise to David (1 Kings 8:22–24), and the unconditional promise to David made in the earlier material (2 Samuel 7:8-16) is subsequently made conditional (1 Kings 8:25) ..."
Reynolds, Scott The Messiah and Eschatology in the Psalms of Solomon (pp. 36-38) Trinity Western University, 2016