Money is the most important thing in life because without it we don't know how the world would have looked like.
Inasmuch as the importance of money can never be overemphasized, I still wouldn't completely agree with your assertion about money being the most important thing in life.
Yes money is quite an important commodity that everyone needs in order to have an easy going life and be able to access the amenities of life and to solve majority of life's problems, but it might also interest you to know that there are some problems that one can't solve no matter the kind of money you have, one of such problems involves certaij health problems, like some incurable or terminal diseases.
That only shows that even health is just as important as wealth, so please change that perspective.
It is true that by having money, of course everyone will be able to fulfill what they need and will also be able to live their life well, but if you compare the problems of health and money, of course these two things are really needed by everyone to be able to live a good life and We see many people who have worked hard to do their work without caring about their health, but what happens after they have health problems is of course that they will not be able to enjoy the results of what they have done.
You are right, it would be better for someone to do their work to accumulate wealth while still thinking about their health and still having enough rest time to maintain our health.