Solomon
Proverbs 10:2ESV·traditional attribution

Treasures gained by wickedness do not profit, but righteousness delivers from death.

Matthew Henry Presbyterian @wholebiblehenry

These two verses speak to the same purport, and the latter may be the reason of the former. 1. That wealth which men get unjustly will do them no good, because God will blast it: Treasures of wickedness profit nothing, Pro 10:2.

Commenting on Proverbs 10:2-3

John Gill Reformed Baptist @doctorgill

Treasures of wickedness profit nothing,.... By which are meant either a large abundance of riches in general, which for the most part are enjoyed by wicked men, and abused to wicked purposes, Pro 11:4; or an affluence of them, obtained in a wicked way, by fraud, oppression, and the like; see Mic 6:10; Or are either not used at all, or put to wicked uses...

Jamieson-Fausset-Brown Reformed @jfbcommentary

Treasures . . . nothing--that is, Ill-gotten gains give no true happiness (compare Pro 4:17; Mat 6:19). righteousness--especially beneficence (Psa 112:9). death--the greatest of all evils.