It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "If the one who begs knew what (harm) there is for him in it, he would never beg."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 12562