14 “Until righteousness,” he says, “turn again unto judgment, and all they that have it are right in heart”. Listen now, and gain righteousness: for judgment you can not yet have. You should gain righteousness first; but that very righteousness of yours shall turn unto judgment. The Apostles had righteousness here on earth, and bore with the wicked. But what is said unto them? “You shall sit on twelve thrones, judging the twelve tribes of Israel.” Their righteousness therefore shall turn unto judgment.
For whoever is righteous in this life, is so for this reason, that he may endure evils with patience: let him suffer patiently the period of suffering, and the day of judging comes. But why do I speak of the servants of God? The Lord Himself, who is the Judge of all living and dead, first chose to be judged, and then to judge. Those who have righteousness at present, are not yet judges. For the first thing is to have righteousness, and afterwards to judge: He first endures the wicked, and afterwards judges them.
Let there be righteousness now: afterwards it shall turn again unto judgment. And so long He endures wicked men, as God does will, as long as God's Church shall endure them, that she may be taught through their wickedness. Nevertheless, God will not cast off His people, “all such as have it are right in heart.” Who are those who are right in heart? Those whose will is the will of God. He spares sinners: thou dost wish Him at once to destroy sinners. Your heart is crooked and your will perverted, when your will is one way and the will of God another.
God wishes to spare sinners: thou dost not wish sinners spared. God is of long-suffering to sinners: thou dost not wish to endure sinners....Wish not to bend the will of God to your will, but rather correct your will to His. The will of God is like a rule: behold, suppose, you have twisted the rule: whence can you be set straight? But the rule itself continues straight: for it is immutable. As long as the rule is straight, you have whither to turn yourself, and straighten your perversity; you have a means of correcting what is crooked in you. But what do men will? It is not enough that their own will is crooked; they even wish to make the will of God crooked according to their own heart, that God may do what they themselves will, when they ought to do that which God wills....
Source: The Enarrations, or Expositions, on the Psalms (New Advent)