Praise be to Allah, and may peace and blessings be upon the Messenger of Allah.
This statement is false and a grave error. The will of Allah تعالى is not a justification for abandoning acts of obedience or committing sins. It is not permissible for a person to use divine decree as an excuse for abandoning what Allah has obligated him to do, such as helping those in need and assisting people in distress.
Allah تعالى has commanded spending and kindness toward those in need, and He condemned those who do not encourage feeding the poor. He said: “No! Rather, you do not honor the orphan, nor do you encourage one another to feed the poor.” [Al-Fajr: 17–18] He also made failure to feed the needy one of the causes of entering the Fire: “What has led you into Saqar? They will say: We were not among those who prayed, nor did we feed the poor.” [Al-Muddaththir: 42–44]
Allah تعالى is the One who provided people with their wealth and made some people wealthy and others in need, and He commanded those who are able to assist those in need. If Allah willed, He could take away the wealthy person’s wealth. Would he then accept being left without help on the pretext that his poverty and hardship were also by the will of Allah?
Allah تعالى condemned those who used His will as an excuse for refusing to feed those in need. He said: “And when it is said to them, ‘Spend from what Allah has provided for you,’ those who disbelieve say to those who believe, ‘Should we feed those whom Allah could have fed if He had willed?’” [Ya-Sin: 47]
Therefore, the obligation is to believe that everything occurs by the will and decree of Allah, while also fulfilling what Allah has commanded, including supporting the oppressed, assisting those in distress, and helping the poor and needy. There is no contradiction between these two matters, because Allah تعالى has decreed causes and commanded His servants to make use of them.
And Allah تعالى knows best.