Al-Adab Al-Mufrad, Book 32, Hadith 4 (In-Book) ⓘ
Abu Mas'ud al-Badri reported that the Prophet, may Allah bless him and grant him peace, said, "When someone spends something on his family and reckons its reward to be with Allah, then it is sadaqa for him."
حَدَّثَنَا حَجَّاجٌ، قَالَ: حَدَّثَنَا شُعْبَةُ قَالَ: أَخْبَرَنِي عَدِيُّ بْنُ ثَابِتٍ قَالَ: سَمِعْتُ عَبْدَ اللهِ بْنَ يَزِيدَ يُحَدِّثُ، عَنْ أَبِي مَسْعُودٍ الْبَدْرِيِّ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ: مَنْ أَنْفَقَ نَفَقَةً عَلَى أَهْلِهِ، وَهُوَ يَحْتَسِبُهَا، كَانَتْ لَهُ صَدَقَةً.
also referenced under: Hadith 749 (Reference) & Book 32, Hadith 749 (English)