Praise be to Allah, and may peace and blessings be upon the Messenger of Allah. To proceed:
Allah تعالى is the Provider and the Best of Providers, and He has guaranteed the provision of His servants. He says: ﴿There is no creature on earth except that its provision is upon Allah﴾ [Hud: 6]. Allah’s provision is determined according to His knowledge and His decree, and no one can increase or decrease it beyond what Allah has decreed.
It is part of Allah’s wisdom that people differ in their provisions: He grants abundance to some and restricts it for others, as He تعالى says: ﴿Allah extends provision for whom He wills and restricts it﴾. This difference is not evidence that wealth is necessarily an honor and poverty a humiliation. Rather, it is a test and a trial.
Allah تعالى says: ﴿And We test you with evil and with good as a trial﴾ [Al-Anbiya: 35]. And He سبحانه says: ﴿As for man, when his Lord tests him and honors him and favors him, he says, “My Lord has honored me.” But when He tests him and restricts his provision, he says, “My Lord has humiliated me.” No!﴾ [Al-Fajr: 15–17].
Thus, a restriction in provision is not humiliation, just as an abundance of provision is not necessarily an honor. Rather, all of this may be a test for the servant, so that the grateful person is distinguished when blessed and the patient person when afflicted. Allah تعالى knows best His wisdom in expanding and restricting provision.
Therefore, the fact that some people die of hunger does not contradict the fact that provision is decreed and written. Everything that occurs in the universe falls within Allah’s knowledge and decree, and He سبحانه has profound wisdom in all of this that our minds may not be able to comprehend.
And Allah تعالى knows best