the deal here isn’t to amass worldly wealth, it’s to build up trreasures for yourself in heaven, ie bringing others to Christ. these are the only things we can take with us to the next life.
No one is denying that.
Solomon was not CONDEMNED for his wealth; but he WAS in trouble for making VERY bad decisions!