The Prophet ﷺ said, "If a man spends on his family (with the intention of having a reward from Allah) sincerely for Allah's sake then it is a (kind of) alms-giving in reward for him. (Using translation from Bukhārī 55)
"إذَا أَنْفَقَ الرّجُل عَلى أهله نَفقةً وهُو يحتَسبُها كَانَتْ لَه صدقة" .