عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ رَضِيَ اللَّهُ عَنْهُمَا قَالَ حَدَّثَتْنِي أُمُّ مُبَشِّرٍ امْرَأَةُ زَيْدِ بْنِ حَارِثَةَ رَضِيَ اللَّهُ عَنْهُ قَالَتْ دَخَلَ عَلَيَّ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ فِي حَائِطٍ فَقَالَ لَكِ هَذَا فَقُلْتُ نَعَمْ فَقَالَ مَنْ غَرَسَهُ مُسْلِمٌ أَوْ كَافِرٌ قُلْتُ مُسْلِمٌ قَالَ مَا مِنْ مُسْلِمٍ يَزْرَعُ أَوْ يَغْرِسُ غَرْسًا فَيَأْكُلُ مِنْهُ طَائِرٌ أَوْ إِنْسَانٌ أَوْ سَبُعٌ زَادَ فِي رِوَايَةٍ أَوْ دَابَّةٌ أَوْ شَيْءٌ إِلَّا كَانَ لَهُ صَدَقَةٌ
It is narrated from a companion, who says: I heard with my own ears the Messenger of Allah, peace and blessings be upon him, saying that whoever plants a tree and patiently supervises and takes care of it until it starts bearing fruit, then whatever is eaten from the fruit of that tree will be considered charity for that person in the sight of Allah Almighty.