Sahih Muslim | Book 10 | Chapter 23

Narrated by Jabir (Allah be pleased with him)
Jabir (Allah be pleased with him) reported Allah's Messenger (may peace be upon him) as saying: Never a Muslim plants a tree, but he has the reward of charity for him, for what is eaten out of that is charity; what is stolen out of that, what the beasts eat out of that, what the birds eat out of that is charity for him. (In short) none incurs a loss to him but it becomes a charity on his part.

Narrated by Jabir (Allah be pleased with him)
Jabir (Allah be pleased with him) reported that Allah's Apostle (may peace be upon him) visited Umm Mubashshir al-Ansariya at her orchard of date-palms and said to her: Who has planted these trees of dates-a Muslim or a non-Muslim? She said: A Muslim, of course, whereupon he said: Never a Muslim plants, or cultivates a land, and it out of that men eat, or the animals eat, or anything else eats, but that becomes charity on his (planter's) behalf.

Narrated by Jabir b. 'Abdullah (Allah be pleased with them)
Jabir b. 'Abdullah (Allah be pleased with them) reported: I heard Allah's Messenger (may peace be upon him) saying: Never does a Muslim plant, or cultivate, but has reward for him for what the beasts eat, or the birds eat or anything else eats out of that.

Narrated by Jabir b. Abdullah (Allah be pleased with them)
Jabir b. Abdullah (Allah be pleased with them) reported: Allah's Apostle (may peace be upon him) visited the orchard of Umm Ma'sud and said: Umm Ma'bad, he who has planted this tree, is he a Muslim or a non-Muslim? She said: Of course, he is a Muslim, whereupon he (the Holy Prophet) said: No Muslim who plants (trees) and from their fruits the human beings or the beasts or birds eat, but that would be taken as an act of charity on the Day of Resurrection.

Narrated by
This hadith is transmitted on the authority of Abu Muawiya (but With a slight change of words).

Narrated by Anas
Anas reported Allah's Messenger (may peace be upon him) as saying Never does a Muslim plant trees or cultivate land and birds or a man or a beast eat out of them but that is a charity on his behalf.

Narrated by Anas b. Malik (Allah be pleased with him)
Anas b. Malik (Allah be pleased with him) reported that Allah's Apostle (may peace be upon him) visited the date-palms of Umm Mubashshir (Allah be pleased with her), a lady from the Ansar, and said: Who planted this palm-a Muslim or an unbelievers The rest of the hadith is the same.