The Bible passage that suggests righteous people dying young are spared from worse things is Isaiah 57:1-2, which says the godly are "taken away to be spared from evil" or "the evil to come," entering peace and rest rather than facing future troubles, offering a perspective of divine mercy, not just tragedy, to comfort believers facing early loss. 
Key Passage: Isaiah 57:1-2

  • Text (NLT): "Good people pass away; the godly often die before their time. But no one seems to care or wonder why. No one seems to understand that God is protecting them from the evil to come. For those who follow godly paths will rest in peace when they die".

  • Meaning: This verse offers comfort by suggesting that when righteous individuals, especially the young, die unexpectedly, it can be God's way of shielding them from future sorrows, wickedness, or trials they would otherwise face on earth, bringing them into eternal peace instead. 
    Other Related Concepts

  • Proverbs 1:32-33: This speaks more about fools dying because they reject wisdom, contrasting with the righteous who find protection.

  • Ecclesiastes 7:17: Mentions not being overly wicked or righteous, suggesting a balance, but the core idea of God's protection for the good is found in Isaiah. 
    In essence, Isaiah 57:1-2 reinterprets early death from a perspective of loss to one of divine protection and mercy, providing solace for grieving families by viewing it as God bringing the faithful home to safety.