(2) باب فَضْلِ الْغَرْسِ وَالزَّرْعِ
Jabir (Allah be pleased with him) reported that Allah's Apostle (ﷺ) visited Umm Mubashshir al-Ansariya at her orchard of date-palms and said to her:
Who has planted these trees of dates-a Muslim or a non-Musim? She said: A Muslim, of course, whereupon he said: Never a Muslim plants, or cultivates a land, and it out of that men eat, or the animals eat, or anything else eats, but that becomes charity on his (planter's) behalf.
Reference: Sahih Muslim 1552 b
In-book reference: Book 22, Hadith 8
USC-MSA web (English) reference(deprecated numbering scheme): Book 10, Hadith 3765