Jabir bin Abdullah reported,

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

Azami 4157

Sahih

عن جابر، قال

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

الأعظمي 4157صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Zakat
Chapter
Encouragement to pay zakat and charity and the ways of spending them
Section
Those who give charity from their surplus wealth
Numbering
Jami al-Kamil 4157 (2nd edition)
Azami 4157