Proverbs 28:6 in the King James Version
Better is the poor that walketh in his uprightness, than he that is perverse in his ways, though he be rich.
Context
5 Evil men don’t understand justice; but those who seek the LORD understand it fully.
6 Better is the poor who walks in his integrity than he who is perverse in his ways, and he is rich.
7 Whoever keeps the law is a wise son; but he who is a companion of gluttons shames his father.