If a man spends something on his family, seeking reward from Allah for it, it shall be recorded for him as charity. [Al-Bukhari]
"«إذا أَنْفَقَ الرجلُ على أهله نَفَقَةً يَحْتَسِبُهَا فهي له صَدَقَةٌ». [صحيح.] - [متفق عليه.]"