Sahih al-Bukhari 6012
Book 78: Good Manners and Form (Al-Adab) · Narrated by Anas bin Malik
Arabic
حَدَّثَنَا أَبُو الْوَلِيدِ، حَدَّثَنَا أَبُو عَوَانَةَ، عَنْ قَتَادَةَ، عَنْ أَنَسِ بْنِ مَالِكٍ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ " مَا مِنْ مُسْلِمٍ غَرَسَ غَرْسًا فَأَكَلَ مِنْهُ إِنْسَانٌ أَوْ دَابَّةٌ إِلاَّ كَانَ لَهُ صَدَقَةً ".
English 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
Reference: Sahih al-Bukhari 6012, Book of Good Manners and Form (Al-Adab). English translation by Dr. Muhammad Muhsin Khan.