It is narrated from Hazrat Umm Mubashir (may Allah be pleased with her) that the Prophet (peace and blessings be upon him) said: "Whoever plants a tree or sows a crop, and then a human, bird, beast, or animal eats from it, it is counted as charity for him."