The Book of Miscellany
كتاب المقدمات
(59) Chapter: Encouraging Livelihood by (working with) Hands and Abstaining from Begging
(59) - باب الحث على الأكل من عمل يده والتعفف به عن السؤال والتعرض للإعطاء
Riyad as-Salihin 539 
Abu Hurairah (May Allah be pleased with him) reported:
Messenger of Allah (ﷺ) said, "It is better for anyone of you to carry a bundle of wood on his back and sell it than to beg of someone whether he gives him or refuses."

[Al-Bukhari and Muslim].
وعن أبي هريرة رضي الله عنه قال‏:‏ قال رسول الله صلى الله عليه وسلم ‏:‏ ‏ "‏لأن يحتطب أحدكم حزمة على ظهره، خير له من أن يسأل أحداً فيعطيه أو يمنعه‏"‏ ‏(‏‏(‏متفق عليه‏)‏‏)‏‏.‏
Reference : Riyad as-Salihin 539
In-book reference : Introduction, Hadith 539