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