When a Muslim spends on his family seeking reward for it from Allah, it counts for him as sadaqa.

Sahih Muslim Book 12, Hadith 59