Job 36:11-12 If they obey and serve him, they shall spend their days in prosperity, and their years in pleasures. But if they obey not, they shall perish by the sword, and they shall die without knowledge.
Elihu spouts the conventional wisdom about rewards and punishments for good or bad behavior, assuming that Job must have done wickedly. He is right in one sense but wrong in his assumptions about cause and effect in regard to Job. It is true that obeying God brings blessing as a natural consequence of obedience, and that disobedience naturally results in a bad life.
Our disobedience was punished at the cross of Christ and the obedience of Christ was given to us by grace. But the presence of Sin in a messed up world rains injustice on both the good and the evil. So there is no direct correlation between the sins we commit and the sufferings we experience. All suffering is the consequence of sin generally, just as death is the wages of sin for all humans.
We don’t enjoy God’s favor and blessing because we have been good, but rather because of Christ. We perish because of Sin, not because God is being mean. The problems we experience is our fault, not God’s. God does not punish a lie by giving us a cold. We all suffer sicknesses and injuries as “little deaths” because we are sinners sentenced to death. But thanks be to God, who gives us victory in Christ. Therefore, we daily repent and believe the Gospel.