The Prophet ﷺ said, "A man's spending on his family is charity."
حدثنا أحمد بن محمد أخبرنا عبد الله بن المبارك عن شعبة عن عدي بن ثابت عن عبد الله بن يزيد
عن النبي ﷺ قال نفقة الرجل على أهله صدقة
Agreed upon (by Bukhari and Muslim). Bukhari reported it in the Book of Faith, chapter on what has been said that deeds are judged by intention, and reward, no. 55, and Muslim, no. 1002, from the hadith of Shubah with the same wording.On this topic there are also narrations from Abdullah bin Amr [Muslim, no. 996], Amr bin Umaya Damri [Ahmad, 4/179], and Abu Hurairah [Muslim, no. 995].