expresses the belief that
wealth or advantages obtained through dishonesty are unlikely to bring lasting benefit and may lead to trouble or loss.
similar to
Ill-gotten, ill-spent.
The saying “Ill-gotten gains never prosper” can be used when any wealth or success acquired through dishonest or unethical means is unlikely to bring long-term prosperity or lasting happiness; Whatever….