Al-Ilmam bi-Ahadith al-Ahkam 513
وَعَن أبي هُرَيْرَة رَضِيَ اللَّهُ عَنْه، عَن النَّبِي ﷺ ، قَالَ: " الْيَد الْعليا خير من الْيَد السُّفْلَى، وابدأ بِمن تعول، وَخير الصَّدَقَة عَن ظهر غنى، وَمن يستعفف يعفه الله، وَمن يسْتَغْن يغنه الله عَزَّ وَجَلَّ ". أخرجه البُخَارِيّ.
And from Abu Hurayrah, may Allah be pleased with him, from the Prophet ﷺ, who said: "The upper hand is better than the lower hand. Begin with those you support. The best charity is that given from surplus. Whoever seeks to be chaste, Allah will make him chaste, and whoever seeks to be self-sufficient, Allah, Mighty and Majestic, will make him self-sufficient." Al-Bukhari recorded it.