كتاب المساقاة
22  
The Book of Musaqah
(2)
Chapter: The Virtue of Planting and Cultivating
(2)
باب فَضْلِ الْغَرْسِ وَالزَّرْعِ ‏‏
Sahih Muslim 1552 b

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 1552b
In-book reference : Book 22, Hadith 8
USC-MSA web (English) reference : Book 10, Hadith 3765
  (deprecated numbering scheme)