Abu Umamah narrated that the Prophet (s.a.w) said:
“O son of Adam! If you give your surplus it is better for you, and if you keep it, it is worse for you, but there is no harm with what is sufficient. And begin (the giving) with your dependents, and the upper hand (giving) is better than the lower hand (receiving).”
“حَدَّثَنَا مُحَمَّدُ بْنُ بَشَّارٍ، حَدَّثَنَا عُمَرُ بْنُ يُونُسَ، – هُوَ الْيَمَامِيُّ حَدَّثَنَا عِكْرِمَةُ بْنُ عَمَّارٍ، حَدَّثَنَا شَدَّادُ بْنُ عَبْدِ اللَّهِ، قَالَ سَمِعْتُ أَبَا أُمَامَةَ، يَقُولُ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم
يَا ابْنَ آدَمَ إِنَّكَ إِنْ تَبْذُلِ الْفَضْلَ خَيْرٌ لَكَ وَإِنْ تُمْسِكْهُ شَرٌّ لَكَ وَلاَ تُلاَمُ عَلَى كَفَافٍ وَابْدَأْ بِمَنْ تَعُولُ وَالْيَدُ الْعُلْيَا خَيْرٌ مِنَ الْيَدِ السُّفْلَى
Grade: Sahih (Darussalam)
Reference: Jami` at-Tirmidhi 2343
In-book reference: Book 36, Hadith 40
English translation: Vol. 4, Book 10, Hadith 2343
https://sunnah.com/tirmidhi/36/40