Anas bin Malik reported,

The Prophet ﷺ entered a date-palm grove belonging to Umm Mubashir, a woman from the Ansar. The Messenger of Allah ﷺ asked, "Who planted this grove? A Muslim or a disbeliever?"They replied, "A Muslim."He said, "No Muslim plants any planting from which a person, bird, or animal eats except that it counts as charity for him."

Azami 5535

Sahih

عن أنس

أن النبي ﷺ دخل نخلا لأم مبشر امرأة من الأنصار، فقال رسول الله ﷺ: من غرس هذا النخل؟ أمسلم أم كافر؟ قالوا: مسلم. فقال: لا يغرس مسلم غرسا، فأكل منه إنسان أو طير أو دابة إلا كانت صدقة.

الأعظمي 5535صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Sales
Chapter
Muzaraa and musaqa
Section
Virtue of a Muslim's planting and cultivating
Numbering
Jami al-Kamil 5535 (2nd edition)
Azami 5535