Abu Mas'ud Al-Badri (May Allah be pleased with him) reported:
The Prophet (ﷺ) said, "When someone spends on his family seeking his reward for it from Allah, it is counted as a charity from him".[Al-Bukhari and Muslim]. (RU)
Arabic/English book reference (RU): Book 1, Hadith 293 (RU)