The Prophet ﷺ said, "If any Muslim plants any plant and a human being or an animal eats of it, he will be rewarded as if he had given that much in charity."
عَنِ النَّبِيِّ ﷺ قَالَ مَا مِنْ مُسْلِمٍ غَرَسَ غَرْسًا فَأَكَلَ مِنْهُ إِنْسَانٌ أَوْ دَابَّةٌ إِلاَّ كَانَ لَهُ صَدَقَةً