When you’re good or righteous you get rewarded. When you’re wicked you get the punishment due to you too. That’s just the way it is.
Read: Ezekiel 7:10-11,13
10 “The day of judgment is here;
your destruction awaits!
The people’s wickedness and pride
have blossomed to full flower.
11 Their violence has grown into a rod
that will beat them for their wickedness.
None of these proud and wicked people will survive.
All their wealth and prestige will be swept away.
13 Even if the merchants survive,
they will never return to their business.
For what God has said applies to everyone—
it will not be changed!
Not one person whose life is twisted by sin
will ever recover.