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 a date-palm orchard of mine and said: "Who planted this date palm, a Muslim 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, and then a bird, a human, a beast of prey or an animal eats from it, except that it is charity for him."
Hadith Referenceالمعجم الكبير للطبراني / مسند النساء / 21725