It is narrated from Sayyidah Umm Mubashshir (may Allah be pleased with her); she said: the Prophet (peace and blessings be upon him) came to me and said: "Who planted this, a Muslim or a disbeliever?" I said: "A Muslim." He (peace and blessings be upon him) said: "There is no Muslim who plants a tree, and then a human, an animal or a bird eats from it, except that it is charity for him."
Hadith Referenceالمعجم الكبير للطبراني / مسند النساء / 21723