عَنْ أَنَسِ بْنِ مَالِكٍ رَضِيَ اللَّهُ عَنْهُ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ مَا مِنْ مُسْلِمٍ يَزْرَعُ زَرْعًا أَوْ يَغْرِسُ غَرْسًا فَيَأْكُلُ مِنْهُ طَيْرٌ أَوْ إِنْسَانٌ أَوْ بَهِيمَةٌ إِلَّا كَانَ لَهُ بِهِ صَدَقَةٌ
Narrated by Sayyiduna Anas bin Malik, may Allah be pleased with him, that the Messenger of Allah, peace and blessings be upon him, said: Whenever a Muslim plants a crop or sows a plant, and birds, humans, or animals eat from it, it is considered charity for him.