The author – may Allah shower blessing on him – cited this hadeeth under the Chapter of Numerous Ways of Doing Good Deeds on the authority of Jabir bin Abdullah (may Allah be pleased with him). He mentioned that the Prophet (ﷺ) talked about a person who cultivated a plant and some people, animal, bird or any other creatures ate from it, and some of it were cut down or stolen. He said they count as charity for him. This hadeeth exhorts towards planting and agriculture, and that they both hold lots of good; they contain benefits of this world and the Religion.
As for the worldly benefits: the harvest it produces; the benefits from planting and agriculture are not like those of money or currency; they are beneficial to the farmer himself and the rancher; the entire people gain by buying the fruit, the grains and eating from them. This is connected to the growth of the society and improving its social welfare; unlike the silver coin that is saved inside the money safe from which no one benefits.
As regards the religious benefits: If a bird - a sparrow or dove or hen or others - eats from it, even if just a grain, it will certainly be recorded as a charity for him, whether he intended that or not. Even if we assume that while farming or planting, he might not intend the charity; when they eat from it, it counts as charity for him.
More amazingly, if a thief steals from it; for example, a crook comes
to a date palm and steals some dates from it, there is certainly reward for its owner for that. Allah – the Exalted - will record charity for him which will endure till the Day of Resurrection due to the stealing, irrespective of the fact that if he could identify this thief, he would have taken him to a court of law.
Likewise, when beasts and vernims eat from this plant, it counts as charity for the owner. Therefore, this hadeeth contains clear indication of the Prophet's promotion of agriculture owing to its worldly and religious benefits.
It also contains proof for the numerous ways of doing good deeds, and that an individual for whatever he does extend benefit to others whether he intended it or not. This is similar to His saying, the Exalted:
“There is no good in most of their secret talks save (in) him who orders Sadaqah or Ma'ruf (Islamic monotheism and all the good and righteous deeds which Allah has ordained) or conciliation between mankind; and he who does this, seeking the good pleasure of Allah, We shall give him a great reward.” (an-Nisa: 114)
Allah – free is He from all imperfections and Exalted is He - mentioned that these matters contain benefits whether extending benefit was intended or not. Likewise, whoever commands charity or makes reconciliation between people; that also is good and righteous deed, whether he actually intended that or not. However, if he intended to seek Allah's Face therewith, Allah says:
“We shall give him a great reward.”
This contains proof that benefits and gains people enjoy constitute good deeds for whoever provided it with rewards even if he did not originally intend it. However, if he intended the good deed from the beginning, he gains rewards in multitudes, and Allah the Exalted will give him tremendous bounties.
I ask Allah, the Mighty, to bestow you and me sincerity and following of the Messenger (ﷺ); certainly, He is most Generous, most Honourable.