Jabir bin Abdullah reported,

The Prophet ﷺ entered an orchard belonging to Umm Mabad and asked, "Umm Mabad, who planted these palm trees, a Muslim or a disbeliever?"She replied, "A Muslim."He said, "No Muslim plants a tree from which a person, an animal, or a bird then eats without it being counted as charity for him until the Day of Resurrection."

Muslim 3971

Sahih

حدثنا أحمد بن سعيد بن إبراهيم حدثنا روح بن عبادة حدثنا زكرياء بن إسحق أخبرني عمرو بن دينار أنه سمع

جابر بن عبد الله يقول

ا دخل النبي ﷺ على أم معبد حائطا فقال يا أم معبد من غرس هذا النخل أمسلم أم كافر فقالت بل مسلم قال فلا يغرس المسلم غرسا فيأكل منه إنسان ولا دابة ولا طير إلا كان له صدقة إلى يوم القيامة

مسلم 3971صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Sharecropping of orchards
Chapter
Virtue of planting and cultivation
Numbering
Darussalam 3971
Muslim 3971