2 Ill-gotten treasures have no lasting value, but righteousness delivers from death.

Read Proverbs 10:2 Using Other Translations

Treasures of wickedness profit nothing: but righteousness delivereth from death.
Treasures gained by wickedness do not profit, but righteousness delivers from death.
Tainted wealth has no lasting value, but right living can save your life.