[Machine] The Prophet ﷺ entered a date palm plantation belonging to Umm Mubashir, a woman from the Ansar. He then asked, "Who planted this tree, a Muslim or a non-Muslim?" They replied, "A Muslim." He said, "A Muslim should not plant something from which a human, bird, or animal eats without it being counted as charity for them."
أَنَّ النَّبِيَّ ﷺ دَخَلَ نَخْلًا لِأُمِّ مُبَشِّرٍ امْرَأَةٍ مِنَ الْأَنْصَارِ فَقَالَ مَنْ غَرَسَ هَذَا مُسْلِمٌ أَوْ كَافِرٌ؟ فَقَالُوا مُسْلِمٌ فَقَالَ لَا يَغْرِسُ مُسْلِمٌ غَرْسًا فَأَكَلَ مِنْهُ إِنْسَانٌ أَوْ طَيْرٌ أَوْ دَابَّةٌ إِلَّا كَانَتْ لَهُ صَدَقَةٌ