If one relies on his wealth, H'shem may allow him to hold onto it, but only as a deposit until someone more worthy of the wealth will inherit it. H'shem may even use his wealth as a means to his downfall as "the loss of his soul"
pg 351
Nefesh Hachaim
"The Torah.. has been the soul, life, and light of all the worlds ever since the world was created. Without the constant flow of light of the Torah, all the worlds would revert to ablsolute primordial emptiness".
Gate Four, Chapter 10 pg 148/149