(42) بَابُ قَوْلِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «الدِّينُ النَّصِيحَةُ لِلَّهِ وَلِرَسُولِهِ وَلأَئِمَّةِ الْمُسْلِمِينَ وَعَامَّتِهِمْ»
Narrated Abu Mas'ud:
The Prophet (ﷺ) said, "If a man spends on his family (with the intention of having a reward from Allah) sincerely for Allah's sake then it is a(kind of) alms-giving in reward for him.
Reference: Sahih al-Bukhari 55
In-book reference: Book 2, Hadith 48
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 1, Book 2, Hadith 53