Sahih Muslim Book 5, Hadith Number 2192.
Chapter : Getting of reward to Sadaqa for the dead given on his or her behalf.
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.