(Pro 10:2 KJV) Treasures of wickedness profit nothing: but righteousness delivereth from death.
The KJV is translated a bit different here. For "treasures of wickedness" the NASB has "ill gotten gains." The Hebrew words are the same, it is the translation that is different. It is easy to jump on this verse and make it an indictment of any attempt to make a profit. That is not the focus. Note that “wickedness/ill-gotten” (7562) and “treasures/gains” (214) are two different words. This is not an indictment of profits, business or capitalism.
The problem is not making money. The problem is making it in an evil way. Private property is a Biblical concept. Profit is a Biblical concept. The meaning changes though if you use evil methods.