Sahih al-Bukhari 5351
Narrated Abu Mas`ud Al-Ansari:

The Prophet (ﷺ) said: "When a Muslim spends something on his family intending to receive Allah's reward, it is regarded as Sadaqah for him."

Reference: Sahih al-Bukhari 5351
In-book reference: Book 69, Hadith 1