Islam preached against begging because Islam has it own obligation to let us know that we should not discriminate any job, and we should be proud of our job instead of begging."Whoever continues to beg people for their property in order to accumulate much property, surely asks for a piece of fire..." (Muslim, Zakat, 105).
"It is better for one among you to bring a load of firewood on his back and give charity out of it (and satisfy his own need) and be independent of people, than that he should beg from people, whether they give him anything or refuse him (Muslim, Zakat, 107)
Islam does not deem Muslims who do not work, who sit idly, make do with a morsel and a coat, and who pose burden on other Muslims as good Muslims. As is understood in the hadiths above, it is strictly forbidden to beg and to take begging as an occupation.