The Prophet (Sallallahu Alaihi Wasallam) 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.”
[Sahih Al Bukhari, Vol. 8, Book of Good Manners, Hadith No. 6012]