1 verses of the Darby Bible have both "gain" and "ways".
Job 22:3 Is it any pleasure to the Almighty if thou art righteous? And is it gain to him that thou makest thy ways perfect?
In other translations: KJV WEB ASV YLT Webster