It is narrated from Sayyiduna Anas (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Any Muslim who plants a tree or sows a crop, and then birds, a human being or an animal eat from it, it becomes a charity (sadaqah) for him."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب المزارعة / 11747
It is narrated from Sayyiduna Anas (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) entered the garden of an Ansari woman named Umm Mubashshir (may Allah be pleased with her). He (peace and blessings be upon him) asked: "Is this the planting of a Muslim or of a disbeliever?" They said: Of a Muslim. He (peace and blessings be upon him) said: "Any Muslim who plants (a tree), and a human being, a bird or an animal eats from it, it becomes a charity for him."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب المزارعة / 11748
It is narrated from Sayyiduna Jabir bin Abdullah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Any Muslim who plants (a tree), then whatever is eaten from it, whatever is stolen from it, and whatever birds and beasts eat from it, all of it is a charity (for him)."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب المزارعة / 11749
It is narrated from Sayyiduna Jabir (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) visited Umm Mubashshir al-Ansariyyah in a date-palm garden of hers. The Prophet (peace and blessings be upon him) asked her: "Who planted these date palms, a Muslim or a disbeliever?" She said: No, rather a Muslim. He (peace and blessings be upon him) said: "No Muslim plants a tree or sows a crop, and then a human being, an animal or anything else eats from it, except that it is a charity for him."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب المزارعة / 11750