Sahih al-Bukhari — Good Manners and Form (Al-Adab) — Hadith No: 6012
Translation
Narrated Anas bin Malik: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