At the end of Psalm 34, we read:
Many are the afflictions of the righteous, but the LORD delivers him out of them all…Affliction will slay the wicked.
Psalm 34:19-21, ESV
Both the righteous and wicked have afflictions. Anyone who told you otherwise is a liar. The difference, however, lies in what comes next. For those who know God, they will see a deliverance. Their affliction, by God’s glory, will turn into life.
In contrast, the wicked will be killed by their affliction.