Proverbs 14:32
The wicked is overthrown through his evildoing,
but the righteous finds refuge in his death.
This is a recurring theme in proverbs. The wicked, who is seeking his advantage through evildoing, is actually causing his undoing. He is working against himself. Most of the wicked experience downfall in this life. They create enemies and make themselves enemies of the state, so that often they get caught and brought to justice, or are overthrown by other wicked competitors. Regardless of what happens in this life, all the wicked are overthrown in the next life. All receive their just reward, which is everlasting. God will not be mocked.
The righteous, however, find eternal refuge in their death, for they enter into the eternal rest won for them by Jesus Christ. This is what marks the real difference between a good death and a bad death. It is not the circumstance of what caused death, but the state of the person when death comes. A person who dies in a horrifying manner dies a good death if he is immediately ushered into glory; a person who dies peacefully in old age dies a bad death if he is ushered into damnation.
Whatever we may think that we see in this life regarding the wicked and the righteous, what we are to live by is what God’s Word teaches is the truth – the wicked are overthrown; the righteous do have a true and lasting refuge who is Jesus Christ.