Volume 3 · Book 39 · Hadith 513
Narrated Anas bin Malik: Allah's Apostle said, "There is none amongst the Muslims who plants a tree or sows seeds, and then a bird, or a person or an animal eats from it, but is regarded as a charitable gift for him."
— Sahih Bukhari, Volume 3, Book 39: Agriculture, Hadith #513