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.
Jeremiah 17:8
6 They will be like a shrub in the arid rift valley. They will not experience good things even when they happen. It will be as though they were growing in the stony wastes in the wilderness, in a salt land where no one can live. 7 My blessing is on those people who trust in me, who put their confidence in me. 8 They will be like a tree planted near a stream whose roots spread out toward the water. It has nothing to fear when the heat comes. Its leaves are always green. It has no need to be concerned in a year of drought. It does not stop bearing fruit. 9 The human mind is more deceitful than anything else. It is incurably bad. Who can understand it?
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