The Prophet (ﷺ) said, "When a Muslim spends something on his family intending to receive Allah's reward it is regarded as Sadaqa for him."
Sahih al-Bukhari Book 69, Hadith 1