It’s not always what you think…

قيل إذا غضب الله على عبد رزقه من حرام، وإذا اشتد غضبه عليه بارك له فيه

Some have said:

If Allah is angry with one of his slaves, he facilitates his sustenance from forbidden sources, and if His anger increases he allows that sustenance to grow.

The point being wealth is not a litmus test of ones closeness to Allah.