Hebrew Bible

Ezekiel 34:23

21 Because you push with your side and your shoulder, and thrust your horns at all the weak sheep until you scatter them abroad, 22 I will save my sheep; they will no longer be prey. I will judge between one sheep and another. 23 “‘I will set one shepherd over them, and he will feed them—namely, my servant David. He will feed them and will be their shepherd. 24 I, the Lord, will be their God, and my servant David will be prince among them; I, the Lord, have spoken! 25 “‘I will make a covenant of peace with them and will rid the land of wild beasts, so that they can live securely in the wilderness and even sleep in the woods.

Date: 6th Century B.C.E.
* Dates are based on scholarly estimates
Pseudepigrapha

Psalms of Solomon 17:21

19 Springs were stopped. From the perennial sources far underground to those in the high mountains. For there was no one among them who practiced righteousness or justice. 20 From their leader to the commonest of the people they committed every kind of sin: the king broke the law, the judges disobeyed, the people sinned. 21 Look, O Lord, and raise up for them their king, a son of David, to rule over your servant Israel in the time that you know, O God. 22 Undergird him with the strength to destroy the unrighteous rulers, to purge Jerusalem from the Gentiles who trample her down to destruction; 23 in wisdom and in righteousness to drive out the sinners from the inheritance, to smash the arrogance of sinners like a potter's jar,

Date: 80-30 B.C.E.
* Dates are based on scholarly estimates