5 “The wicked heart has not cleaved unto me.”...The heart of a man, who wishes not anything contrary to any that God wishes, is called straight....If therefore the righteous heart follows God, the crooked heart resists God. Suppose something untoward happens to him, he cries out, “God, what have I done unto You? What sin have I committed?” He wishes himself to appear just, God unjust. What is so crooked as this? It is not enough that you are crooked yourself: you must think your rule crooked also.
Reform yourself, and you find Him straight, in departing from whom you have made yourself crooked. He does justly, thou unjustly; and for this reason you are perverse, since you call man just, and God unjust. What man do you call just? Yourself. For when you say, “What have I done unto You?” you think yourself just. But let God answer you: “You speak truth: you have done nothing to Me: you have done all things unto yourself; for if you had done anything for Me, you would have done good.
For whatever is done well, is done unto Me; because it is done according to My commandment; but whatever of evil is done, is done unto you, not unto Me; for the wicked man does nothing except for his own sake, since it is not what I command.” When ye see such men, brethren, reprove them, convince and correct them: and if you cannot reprove or correct them, consent not to them.
Source: The Enarrations, or Expositions, on the Psalms (New Advent)