Hadeeth says: Allah created the souls of people 2000 years before creating their bodies, and He created their sustenance 2000 years before creating their souls.
Allah (SWT) Has granted enough sustenance for all His creatures, but arrogant people snatch away the rights of others causing them to be hungry. Ameerul Mo'minnen Ali (AS) said: No one becomes hungry but only because someone else has taken away his right. ما جاع فقير إلا بما منع به غني
The real cause of the poverty is the injustice done by wrong doers on others.