AHMAD 12999:
from Anas b. Mālik —
[Machine] The Prophet ﷺ entered a date palm grove belonging to Umm Mubashir, a woman from the Ansar. He asked, "Who planted this tree? Is it a Muslim or a non-Muslim?" They replied, "It was planted by a Muslim." He said, "A Muslim should not plant a tree from which a human, animal, or bird eats without it being counted as a charity for him."
أحمد ١٢٩٩٩:
عن انس بن مالك —
أَنَّ رَسُولَ اللهِ ﷺ دَخَلَ نَخْلًا لِأُمِّ مُبَشِّرٍ امْرَأَةٍ مِنَ الْأَنْصَارِ فَقَالَ مَنْ غَرَسَ هَذَا الْغَرْسَ أَمُسْلِمٌ أَمْ كَافِرٌ؟ قَالُوا مُسْلِمٌ قَالَ لَا يَغْرِسُ مُسْلِمٌ غَرْسًا فَيَأْكُلُ مِنْهُ إِنْسَانٌ أَوْ دَابَّةٌ أَوْ طَائِرٌ إِلَّا كَانَ لَهُ صَدَقَةً
hadithunlocked.com