Intro: Jeremiah 30:9 (NIV) "Instead, they will serve the Lord their God and David their king, whom I will raise up for them."
This verse speaks of a future restoration of Israel, where "David" refers not to the historical king but to the messianic king from David’s line, symbolizing the ideal ruler.
The NET Bible: The Davidic ruler which I will raise up as king over them refers to a descendant of David who would be raised up over a regathered and reunited Israel and Judah. He is called “David” in Hos 3:5, Ezek 34:23-24; 37:24-25 and referred to as a shoot or sprig of Jesse in Isa 11:1, 10 and a “righteous branch” springing from David (the Davidic line). He is called “David” because he is from the Davidic line and because David is the type of the ideal king whom the prophets looked forward to. See further the study notes on 23:5 for this ideal king and for his relation to the NT fulfillment in the person of Jesus the Christ.
Similarly in the Psalms Solomon & David are called Messiah;
Their names are sometimes used as a title or types for the future Messiah.
Psalmic Context
Typical prophetic words of lamentation: doom/gloom mixed; hope/vindication.
This is indicative of the nature of the gospel message: bad news first in order for you to repent, followed by the good news.
The opening verses set up the main theme: The Davidic covenant.
Hope/vindication:
A celebration and remembrance of the David covenant (2 Sam. 7:8–16);
A hope that God will never reject His Kingdom.
Doom and gloom:
The song mourns the rebellion of the people;
God’s wrath on his people by his anointed;
Remembrance of the exile and wanderings.
Of Solomon a Psalm 72:
vv. 3, 7 “In his days may the righteous flourish, and peace abound, till the moon be no more!”
v.6 "He will judge Your people with righteousness and Your afflicted ones with justice." NCV;
v.8-11 “May he have dominion from sea to sea… May all kings fall down before him, all nations serve him!”
vv.12-14 “For he delivers the needy when he calls… from oppression and violence he redeems their life…”
v.17 HCSB May his name endure forever; as long as the sun shines, may his fame increase. May all nations be blessed by him and call him blessed.
Cp. 2Sam 7:12-16 "May his name endure forever; as long as the sun shines, may his fame increase. May all nations be blessed by him and call him blessed."
Of David a Psalm 89:
The seed of David: Cp. 131:11-12; 2 Sam. 7:8–16;
Vv.3-4: “I will establish your seed [LXX, sperma]” or “descendant forever” = dynasty; Cp. Luke 1:32-33
“The Lord God will give him the throne of his father David and he will reign over the house of Jacob forever, and of his kingdom there will be no end.”
V.19 "your godly one" gibbor = used for YHWH Deuteronomy 10:17
“For the Lord your God is God of gods, and Lord of lords, a great God, a mighty (gibbor), and a terrible, which regardeth not persons, nor taketh reward.”
Gibbor used for the prophet Nathan 2Sam 7:17; 1Chro 17:15; cp. same LXX word godly for Jesus in Acts 2.27, “not abandon your holy one” in the grave; Gibbor David and others = mighty men of David, 2 Sam 23.8; the Giants, Gen 6.4; human might gods, ele gibborim = Ezek. 32.21; cp. Isa. 9.6;
V.20 "I have found [i.e., elected] David my servant" = I have found/elected Israel, Hos 9.10; Israel as the suffering servant, Isa 49-53; Jesus as that servant of God Acts 3.13; 4.30;
V.25 the right hand of David = the right hand of God, Ex 15.6; Ps 118.16 = godlike King, Ps 72.2, 6, 17a;
V.26 David says "my Father, my God" = Jesus "I go to my Father…my God," John 20.17;
V.27 My firstborn in rank not time = the procreated son, Ps 2.7-12; cp. Rom. 8:29; Col. 1:15; Rev. 1:5;
Vv. 29, 35-37 the eternality of the Davidic throne = Kingdom and its rulers, Ps 78.68-70;
The Pulpit Commentary literally “the most high above the kings of the earth”; cp. God over the kings of the earth, the Most High to his angelic ministers.
Other Texts
Ezekiel 34:23-24 (NIV):
"I will place over them one shepherd, my servant David, and he will tend them; he will tend them and be their shepherd. I the Lord will be their God, and my servant David will be prince among them. I the Lord have spoken."
Ezekiel prophesies about a future shepherd-king called "David," clearly a messianic figure, as the historical David was long deceased. This points to the Messiah as a ruler and shepherd.
Ezekiel 37:24-25 (NIV):
"My servant David will be king over them, and they will all have one shepherd. They will follow my laws and be careful to keep my decrees. They will live in the land I gave to my servant Jacob, the land where your ancestors lived. They and their children and their children’s children will live there forever, and David my servant will be their prince forever."
Similar to Ezekiel 34, this passage refers to a future unified Israel under "David," the messianic king, who will rule eternally, aligning with messianic expectations.
Hosea 3:5 (NIV):
"Afterward the Israelites will return and seek the Lord their God and David their king. They will come trembling to the Lord and to his blessings in the last days."
This prophecy about the "last days" uses "David" to denote the messianic king, emphasizing Israel’s restoration and submission to God’s chosen ruler.
Amos 9:1 (NIV):
"In that day I will restore David’s fallen shelter—I will repair its broken walls and restore its ruins—and will rebuild it as it used to be."
While not explicitly calling the Messiah "David," this verse refers to the restoration of David’s dynasty, often interpreted messianically in Jewish and Christian traditions (e.g., Acts 15:16-17 in the New Testament applies this to Jesus).