Sunan an-Nasa'i, Hadith 2545 ⓘ
It was narrated from Abu Mas'ud that the Prophet said: "When a man spends on his family, seeking reward for that, that is an act of charity on his part."
أَخْبَرَنَا مُحَمَّدُ بْنُ بَشَّارٍ، قَالَ حَدَّثَنَا مُحَمَّدٌ، قَالَ حَدَّثَنَا شُعْبَةُ، عَنْ عَدِيِّ بْنِ ثَابِتٍ، قَالَ سَمِعْتُ عَبْدَ اللَّهِ بْنَ يَزِيدَ الأَنْصَارِيَّ، يُحَدِّثُ عَنْ أَبِي مَسْعُودٍ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ " إِذَا أَنْفَقَ الرَّجُلُ عَلَى أَهْلِهِ وَهُوَ يَحْتَسِبُهَا كَانَتْ لَهُ صَدَقَةً " .
also referenced under: Book 23, Hadith 0 (In-Book) & Volume 3, Book 23, Hadith 2546 (DarusSalam)