Job 34:12 in the King James Version
Yea, surely God will not do wickedly, neither will the Almighty pervert judgment.
Context
11 For the work of a man he will give to him, and cause every man to find according to his ways.
12 Yes surely, God will not do wickedly, neither will the Almighty pervert justice.
13 Who put him in charge of the earth? Or who has appointed him over the whole world?