TABARANI 21821:
from Jābir b. ʿAbd al--Alh —
[Machine] The Prophet ﷺ entered upon a woman in a date palm grove and said, "Who planted this palm tree, is he a Muslim or a non-Muslim?" She replied, "Indeed, he is a Muslim." He said, "There is no Muslim who plants a tree or sows seeds and then a beast, bird, or human being eats from it except that it will be charity for him."
الطبراني ٢١٨٢١:
عن جابر بن عبد ال-له —
أَنَّ النَّبِيَّ ﷺ دَخَلَ عَلَى أُمِّ مُبَشِّرٍ فِي نَخْلٍ فَقَالَ «مَنْ غَرَسَ هَذَا النَّخْلَ أَمُسْلِمٌ أَوْ كَافِرٌ؟» قَالَتْ بَلْ مُسْلِمٌ قَالَ «مَا مِنْ مُسْلِمٍ يَغْرِسُ غَرْسًا أَوْ يَزْرَعُ زَرْعًا فَيَأْكُلُ مِنْهُ دَابَّةٌ أَوْ طَائِرٌ أَوْ إِنْسَانٌ إِلَّا كَانَ لَهُ صَدَقَةٌ»
hadithunlocked.com