Excess wealth is not always good for a person and that is why Allah in His infinite wisdom may withhold providing for people knowing that if He were to increase their provision, they would become arrogant and oppressive in the earth, therefore He gives to them according to His knowledge and wisdom of what they deserve.
Many people believe that wealth is their salvation, but this is contrary to what the Prophet ﷺ told us.
In another narration, the Prophet ﷺ said
Wealth can be a blessing in terms of helping a person to fulfil his duties and provide for his needs and those who depend on him, but not everyone is able to handle what may come with wealth in terms of pride and stinginess. Some people are more generous when they have little. When they become wealthy, instead of the wealth increasing them in giving, it has the opposite effect and leads to stinginess and looking down on others. This is why Allah said:
A Muslim should ask for the good of this life from Allah which includes all of his provision and not forget the hereafter. This is why Allah said:
But among them is he who says, "Our Lord, give us in this world [that which is] good and in the Hereafter [that which is] good and protect us from the punishment of the Fire.
Balance as always is the key to reaching the goals that Allah has laid out for us. A believer seeks his provision in the dunya as well as the reward of the akhirah, but in seeking the akhirah he should also not forget about working for his provision in the dunya. He does not make the dunya more important to him than the hereafter and he does not let wealth affect and corrupt his heart. If one gets wealthy, he should utilize that wealth to do what is pleasing to Allah. There were companions of the Prophet peace and blessing be upon him who had wealth such as Abu Bakr, ‘Uthmaan, ‘AbduRahman bin ‘Awf and others. They spent their wealth to do good deeds and in the path of Allah. Allah said:
When some of the companions wanted to give up everything in the dunya that Allah had made permissible for them, the Prophet peace and blessings be upon him scolded them. The following narration illustrates this: