Yea, surely God will not do wickedly, neither will the Almighty pervert justice.
Read Chapter 34
Gregory The Dialogist
45. The Lord said to the devil, Thou hast moved Me against him to afflict him without cause. [Job 2, 3] But Eliu says, That the Lord will not condemn without cause. A statement which is believed to be at variance with the words of Truth, unless weighed with careful consideration. For to condemn is one thing, to afflict another. He afflicts therefore in some respect without cause, but does not condemn without cause. Had He not afflicted Job in some respect without cause, since sin was not blotted out, but merit increased thereby? For He cannot condemn without reason, inasmuch as condemnation cannot take place partly for a certain purpose: since it punishes at the end all the ungodliness which any one has here committed. Nor does Almighty God subvert judgment: because, although our sufferings seem to be unjust, yet they are rightly inflicted in His secret judgment.