It is narrated from Sayyiduna Jabir bin Abdullah (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) came to Sayyidah Umm Mubashshir (may Allah be pleased with her) in an orchard and said: "Who planted these date palms, a Muslim or a disbeliever?" She said: "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 an animal, a bird or a human eats from it, except that it is charity for him."
Hadith Referenceالمعجم الكبير للطبراني / مسند النساء / 21722