Abu Mas'ud reported Allah's Messenger (way peace be upon him) as saying
When a Muslim spends on his family seeking reward for it from Allah, it counts for him as sadaqa.