Numbers 24:6
3 Then he uttered this oracle: “The oracle of Balaam son of Beor, the oracle of the man whose eyes are open, 4 the oracle of the one who hears the words of God, who sees a vision from the Almighty, although falling flat on the ground with eyes open: 5 ‘How beautiful are your tents, O Jacob, and your dwelling places, O Israel! 6 They are like valleys stretched forth, like gardens by the river’s side, like aloes that the Lord has planted, and like cedar trees beside the waters. 7 He will pour the water out of his buckets, and their descendants will be like abundant water; their king will be greater than Agag, and their kingdom will be exalted.
Psalm 1:3
1 How blessed is the one who does not follow the advice of the wicked, or stand in the pathway with sinners, or sit in the assembly of scoffers. 2 Instead he finds pleasure in obeying the Lord’s commands; he meditates on his commands day and night. 3 He is like a tree planted by flowing streams; it yields its fruit at the proper time, and its leaves never fall off. He succeeds in everything he attempts. 4 Not so with the wicked! Instead they are like wind-driven chaff. 5 For this reason the wicked cannot withstand judgment, nor can sinners join the assembly of the godly. 6 Certainly the Lord guards the way of the godly, but the way of the wicked ends in destruction.
Notes and References
"... Beyond the sense of divine protection that is brought out in Numbers 20 and 21, Balaam offers blessing to Israel. Whereas the narrative sections of chapters 22-24 speak primarily of protection from danger, Balaam's oracles hold out the promise of positive elements such as progeny, protection from sin, rootedness, and military success. One implementation of this theme of blessing can be seen in the extended simile in Balaam's third oracle, where Israel's good fortune is likened to a tree planted in a garden (Numbers 24:5-7). The language used here shares in the complex of imagery found in Jeremiah 17:7-8, Ezekiel 47:12, and Psalms 1 and 92. Whereas this symbolism does not originate with Balaam, or even within Israel, the present context provides some interesting contrasts with less positive images in Genesis 2-3 ..."
Savran, George Beastly Speech: Intertextuality, Balaam's Ass, and the Garden of Eden (pp. 33-55) Journal for the Study of the Old Testament, 1994