I think there is actually virtue in staying relatively poor
there is actually no way to get rich in a moral way.
If you inherit wealth, you did basically nothing to deserve it.
If you obtain wealth by government power, that is theft.
If you obtain wealth by trade, then you basically just took advantage of market scarcity, and it isnt really your effort as much as it is God's gift of such circumstances.
trade is least evil, but still evil way to get rich. And once you are rich, per religion, you cant logically stay rich. And this is true for almost every religion I know. Sikhism and Bible basically teach sharing and even life of poverty. Quran allows for person to be somewhat rich, but its highly recommended to donate to charity, not all wealth, but a good part of it. Hindusim has mixed teachings, different groups teach different stuff, but you definitely want good karma and its easiest to achieve with money if you are rich.
But this is actually a bit unfair to the poor. If you think about it, rich person has opportunity to do many good things by power of mere money, while poor person doesnt. But this is why rich person is judged more, and held to a higher standard.
Its actually a terrible disadvantage even morally to have opportunity to do good things and choose not to do it but instead please yourself.
this is why being rich is actually a curse, because people dont part with wealth easily.
Rich people are given power to change people's lives greatly, and if they waste that power, its very bad for them. But the temptation of wealth is too great, for most people, its better not to have wealth.
And being poor helps others too, it leaves more resources for others, lower demand for goods, lower demand for food reduces price...ect.