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 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."
قال رسول الله ﷺ: ما من مسلم يغرس غرسا إلا كان ما أكل منه له صدقة، وما سرق منه له صدقة، وما أكل السبع منه فهو له صدقة، وما أكلت الطير فهو له صدقة، ولا يرزؤه أحد إلا كان له صدقة.