Sahih al-Bukhari, Book 69, Hadith 1 (Bukhari 5137)

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 Sadaqa for him."