It is narrated from Sayyidah Umm Mubashshir (may Allah be pleased with her); she said: the Messenger of Allah (peace and blessings be upon him) came to me while I was in an orchard and said: "Did a Muslim plant this or a disbeliever?" I said: "No, rather a Muslim." He (peace and blessings be upon him) said: "There is no Muslim who plants a tree or sows a crop, and then a bird, a beast of prey, an animal or a human eats from it, except that it is charity for him."
Hadith Referenceالمعجم الكبير للطبراني / مسند النساء / 21724