Jabir bin Abdullah reported,

The Messenger of Allah ﷺ said, "There is no Muslim who plants a tree except that whatever is eaten from it is charity for him, whatever is stolen from it is charity for him, whatever wild animals eat from it is charity for him, whatever birds eat from it is charity for him, and no one takes anything from it except that it becomes charity for him."

Muslim 3968

Sahih

حدثنا ابن نمير حدثنا أبي حدثنا عبد الملك عن عطاء

عن جابر قال

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

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