It is narrated from Abdullah bin Adi bin Khiyar (may Allah be pleased with him) that two men informed him that both of them came to the Messenger of Allah (ﷺ) and asked him for charity. The Prophet (ﷺ) looked at them from head to toe and said: "If you wish (I will give you), but there is no share in charity for a wealthy person nor for one who is strong and able to earn."
Hadith Referenceمسند الإمام الشافعي / كتاب الزكاة / 676
Hadith Takhrijصحيح اخرجه ابوداود، الزكاة، باب من يعطى من الصدقة وحد الغنى (1633) والنسائي، الزكاة، باب مسألة القوى المكتسب (2599)۔