I have rejoiced today in your strong words, In the way I went, I remembered. Of thy testimonies, peace was dispensed, As much as I struggled; Yet I found myself in all riches.
This is not about riches vs poverty. It is about the condition of the heart.
Your heart is in view in a big way in chapter 23. Look on the outline for the green shaded areas where “thine heart” is mentioned. Compare the first five with the last one, number six, and be warned.