It was narrated from Abu Mas‘ud that the Prophet (blessings and peace of Allah be upon him) said: “If a man spends on his family, seeking reward with Allah thereby, it will be an act of charity on his part.”.
Commentary :
Spending in Allah’s cause is one of the best of righteous deeds, hence spending may take many forms, and the extent of spending should be properly worked out. Spending may vary according to one’s situation and circumstances. One of the best kinds of spending is spending on one’s wife, children and relatives, just as neglecting them is a grievous sin.
In this hadith, the Prophet (blessings and peace of Allah be upon him) explains that if a man spends his wealth on his family – his wife, children and other relatives – for whose maintenance he is responsible and spending on them is obligatory upon him, intending that for the sake of Allah and seeking His pleasure, then whatever he spends, small or great, will be regarded by Allah as a righteous deed for which he will be granted the reward of charity. What man can attain a greater reward than a man who spends on his family so that by means of his help, Allah will enable them to maintain their dignity and make them independent of means? The hadith does not mean that this spending comes under the same rulings as charity; rather the reward for it will be like the reward of charity. And it was said that the wording may give the sense that the reward for spending [on one’s family] can only be attained if one has the intention of drawing closer to Allah thereby, whether it is obligatory or permissible, and that the one who does not intend to draw closer to Allah thereby will not be rewarded, but he will have fulfilled his duty of spending on those on whom he is obliged to spend. This hadith encourages us to have a good intention in all that we do, and draws attention to the fact that the intention in the heart is important in all cases, therefore faith and other acts of worship are included in that..