II Samuel 7:11-16,
11. … And Hashem informs you that Hashem will establish a dynasty for you. 12. When your days are complete and you lie with your forefathers, I shall raise up after you your offspring who will issue from your loins, and I shall make his kingdom firm. 13. He shall build a Temple for My sake, and I shall make firm the throne of his kingdom forever. 14. I shall be a Father unto him and he shall be a son unto Me, so that when he sins I will chastise him with the rod of men and with afflictions of human beings. 15. But My kindness will not be removed from him as I removed [it] from Saul, whom I removed from before you. 16. Your dynasty and your kingdom will remain steadfast before you for all time; your throne will remain firm forever.
–
II Samuel 23:5,
For was my house not [set up] thus with God; for He has granted me an everlasting covenant, established for all [time] and secure; for my entire salvation and desire [have been fulfilled], for He will not [allow other kingdoms to] sprout.
–
I Kings 11:39,
‘ … And I shall afflict the descendants of David for this – but not for all time.’
Artscroll Tanakh, G-d would afflict the Davidic dynasty by not allowing it to reign over the entire nation (Radak), but this punishment would not be permanent. The Messiah, scion of the House of David, will once again reign over a united Israel (Rashi).
Azamra.org, The prophet’s grim message to Solomon was that because he was divided in his own heart, the very kingdom itself would be divided and torn into two so soon after the establishment of the House of David and the building of God’s Temple in Jerusalem . The glorious age of Solomon’s international empire and Israelite cultural hegemony proved to be very short-lived indeed. Yet the House of David’s loss of their rule over all the tribes of Israel was different from the collapse of the House of Saul, for while the latter disappeared completely, the House of David always retained the loyalty of Judah and Benjamin, and is destined to regain its rule over all Israel in the end of days. Indeed Ahiyah’s prophecy to Jeraboam that God would afflict the seed of David «BUT NOT FOR ALL THE DAYS» (v 39) is taken as a promise that eventually Judah will once again be reunited with Ephraim and the Ten Tribes (RaDaK).
–
Psalms 89:27-38,
27. He will call to Me, ‘You are my Father, my God and the Rock of my salvation!’ 28. I, too, will make him a firstborn, supreme over the earth’s kings. 29. Forever shall I preserve My kindness for him, and My covenant shall remain true to him. 30. And I shall establish his seed eternally, and his throne like the days of the heavens. 31. If his sons should forsake My Torah and not walk in My judgments; 32. if they should profane My statutes, and not observe My commandments, 33. then I will punish their transgression with the rod, and their iniquity with plagues; 34. but I shall not utterly remove My kindness from him, and I will not be false to My faithfulness. 35. I shall not profane My covenant, and I shall not alter the utterance of My lips. 36. One thing have I sworn by My holiness – that I would not be deceitful to David. 37. His seed will endure forever, and his throne shall be like the sun before Me. 38. Like the moon, it shall be established forever – a faithful witness in the sky, Selah.
Artscroll Tehillim, v. 28. I will also make him first-born. – David is considered first-born because he was the first monarch of the House of David, Israel’s Divinely ordained dynasty. Since Saul’s reign was aborted prematurely, he did not merit this title (Ibn Ezra). [1. David was the youngest of Jesse’s sons, yet he is called first-born because, just as the first-born receives two portions of his father’s estate, David received two portions of Divinely ordained royalty: sovereignty in this world and sovereignty in the World to Come (Midrash Shocher Tov).]
–
I Chron. 17:12-14,
12. He will build Me a house, and I shall establish his throne forever. 13. I shall be to him as a father, and he will be to Me as a son, and I shall not remove My loving-kindness from him as I removed [it] from he who was before you. 14. And I shall station him in My house and in My kingdom forever, and his throne shall be established forever.
–