Hadithcore
Sahih al-Bukhari, 1480
sahih

Narrated Abu Huraira:

The Prophet (ﷺ) said, "No doubt, it is better for a person to take a rope and proceed in the morning to the mountains and cut the wood and then sell it, and eat from this income and give alms from it than to ask others for something."

حَدَّثَنَا عُمَرُ بْنُ حَفْصِ بْنِ غِيَاثٍ، حَدَّثَنَا أَبِي، حَدَّثَنَا الأَعْمَشُ، حَدَّثَنَا أَبُو صَالِحٍ، عَنْ أَبِي هُرَيْرَةَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏

‏ لأَنْ يَأْخُذَ أَحَدُكُمْ حَبْلَهُ، ثُمَّ يَغْدُوَ ـ أَحْسِبُهُ قَالَ ـ إِلَى الْجَبَلِ فَيَحْتَطِبَ، فَيَبِيعَ فَيَأْكُلَ وَيَتَصَدَّقَ خَيْرٌ لَهُ مِنْ أَنْ يَسْأَلَ النَّاسَ ‏

‏‏.‏ قَالَ أَبُو عَبْدِ اللَّهِ صَالِحُ بْنُ كَيْسَانَ أَكْبَرُ مِنَ الزُّهْرِيِّ، وَهُوَ قَدْ أَدْرَكَ ابْنَ عُمَرَ‏.‏

References2 variants
In-Book Reference
Book 24, Hadith 81
USC-MSA web (English) reference
Vol. 2, Book 24, Hadith 558 (deprecated numbering scheme)