Sahih al-Bukhari 4006
Sahih al-Bukhari · Book 64: Military Expeditions led by the Prophet (pbuh) (Al-Maghaazi) · Chapter
Narrated Abu Masud Al-Badri:
حَدَّثَنَا مُسْلِمٌ ، حَدَّثَنَا شُعْبَةُ ، عَنْ عَدِيٍّ ، عَنْ عَبْدِ اللَّهِ بْنِ يَزِيدَ ، سَمِعَ أَبَا مَسْعُودٍ الْبَدْرِيَّ ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ " نَفَقَةُ الرَّجُلِ عَلَى أَهْلِهِ صَدَقَةٌ " .
The Prophet (ﷺ) said, "A man's spending on his family is a deed of charity."