This hadeeth which the author - may Allah shower blessings on him - cited about Ma'n bin Yazeed and his father - may Allah be pleased with them - that his father, Yazeed, gave some amount of Dirham to a man in the mosque to dole out as charity to the poor. Then his son, Ma'n came and took it; and perhaps the man who was entrusted with it did not know he was Yazeed's son. It could also be that he gave him because he was among those entitled to it.
That reached his father, Yazeed, who then said to him: "I have not intended to give you" that is, I did not intend to give these Dirhams to you as handout. So he went to the Messenger of Allah (ﷺ) who said: "Yazeed, you will have the reward for what you intended; and you are entitled to what you have taken, O Ma'n."
So his statement - peace and blessings be upon him -: "Yazeed, you will have the reward for what you intended" points to the fact that actions are rewarded according to intentions, and that when a person intends good gets it. Even though Yazeed did not intend that his son takes these Dirhams; but he did take it since he was among those eligible for it and they became his. For this reason, the Prophet (ﷺ) said: "You are entitled to what you have taken, O Ma'n."
This hadeeth contains: evidence for the heading under which the author placed the hadeeth; that actions are rewarded according to the intentions, and that reward will be written down for the individual for what he intended even if something he had not intended happened in the end. This principle has numerous applications:
Among them: what the scholars - may Allah shower blessings on them - mentioned, that if a man gave his Zakaah to an individual thinking he was eligible but it later became clear that he was a rich man, not eligible for such; the Zakaah suffices and will be accepted; he is free from any blame because he intended to give it an individual who was entitled. Since he had given the intention, he will get the reward for his intention.
Also, if a person wants to endow a small house - for example - and says: "I endow so-and-so house" and points to the big house. However this was contrary to what he actually intended in his heart; the matter
will be ruled according to what he intended and not what his tongue mistakenly pronounced.
Similarly, a person is ignorant, not knowing the difference between the lesser Hajj and Hajj. If he performs the Hajj with a people and says: "Labayka Hajjan (Here I am, O Allah, for Hajj)" although he actually wished to perform the lesser Hajj and to merge it with the Hajj, he will have the reward for what he had intended. As long as he had intended the lesser Hajj even though he said "Labayka Hajjan" while with those people, he will have the reward according to his intention; and his slip of tongue will not harm him in anyway.
Likewise, if a man says to his wife: "You are divorced" while intending that she is set free from restriction and not from marriage, he will have what he intended and his wife will not be separated from him on that account.
This hadeeth contains many lessons and extensive applications under various sections of Fiqh.
From the lessons in this hadeeth is that it is permissible for a person to give charity to his son. The evidence for this is that the Prophet (ﷺ) commanded that charity be given and encouraged it. So, Zaynab, the wife of Abdullah bin Mas'ood (may Allah be pleased with her) wanted to give a portion of her wealth in charity and her husband said to her: "Your child and I are more deserving that you give charity to" – because he was poor – may Allah be pleased with him. She retorted, "No, until I ask the Prophet (ﷺ)." She asked the Prophet (ﷺ) and he said: "Ibn Mas'ood has said the truth; your husband and your child are the most deserving of those you may give charity to."(1)
Another point of benefit in the hadeeth is that: It is permissible for a person to give his child out of his Zakaah with a condition that such does not constitute halting other obligations on him. That is – for example, if a person has Zakaah which he wants to give out in charity to his son so that he will not ask him for his needs; such is not valid because he has intended therewith to halt something obligatory on him.
However, if he gives him (the Zakaah) so that he could settle his debt such as if the son got afflicted in an accident and his father gave him
from the Zakaah to ease off the debts, there is no blame on him. That is valid Zakaah since his child is the closest person to him and he had not intended to halt something basically obligatory on him. He only intended quittance of his child's burden, not the basic maintenance. If this was his intention, then his Zakaah is valid.
And Allah alone grants success.