Planting plants and trees in appropriate places is an act of great merit. Anas has quoted the following Prophetic saying: -
"A man plants a tree or sows a field and a man or bird eats from it, the tree or field becomes a source of sadaqah for him." (Bukhari and Muslim)
In other words, the merit of advantage taken by a man or beast from a plantation goes continuously to the planter as a sadaqah jariyah.