Sahih al-Bukhari, Book 41, Hadith 1 (Bukhari 2231)
Narrated Anas bin Malik:
Allah's Messenger (ﷺ) 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."