Narrated Abu Hurayrah: The Prophet (ﷺ) commanded to give sadaqah. A man said: Messenger of Allah, I have a dinar. He said: Spend it on yourself. He again said: I have another. He said: Spend it on your children. He again said: I have another. He said: Spend it on your wife. He again said: I have another. He said: Spend it on your servant. He finally said: I have another. He replied: You know best (what to do with it).
Source: sunnah.com
Other translations
Arabic
حَدَّثَنَا مُحَمَّدُ بْنُ كَثِيرٍ، أَخْبَرَنَا سُفْيَانُ، عَنْ مُحَمَّدِ بْنِ عَجْلاَنَ، عَنِ الْمَقْبُرِيِّ، عَنْ أَبِي هُرَيْرَةَ، قَالَ أَمَرَ النَّبِيُّ صلى الله عليه وسلم بِالصَّدَقَةِ فَقَالَ رَجُلٌ يَا رَسُولَ اللَّهِ عِنْدِي دِينَارٌ . فَقَالَ " تَصَدَّقْ بِهِ عَلَى نَفْسِكَ " . قَالَ عِنْدِي آخَرُ . قَالَ " تَصَدَّقْ بِهِ عَلَى وَلَدِكَ " . قَالَ عِنْدِي آخَرُ . قَالَ " تَصَدَّقْ بِهِ عَلَى زَوْجَتِكَ " . أَوْ قَالَ " زَوْجِكَ " . قَالَ عِنْدِي آخَرُ . قَالَ " تَصَدَّقْ بِهِ عَلَى خَادِمِكَ " . قَالَ عِنْدِي آخَرُ . قَالَ " أَنْتَ أَبْصَرُ " .
sunnah.com