St. Francis de Sales
Treatise on the Love of God
Book IX › Chapter VI · Part 2 of 2
But further, if the enterprise begun by inspiration fail by the fault of those to whom it was committed, how can it then be said that a man is to acquiesce in God's will? For, some one will say to me, it is not God's will that hinders the success, but my fault. This is not caused by God's will, for God is not author of sin; but yet for all that, it is God's will that your fault should be followed by the overthrow and failure of your design, in punishment of your fault; for though his goodness cannot permit him to will your fault, yet does his justice make him will the punishment you suffer for it. So God was not the cause that David offended, yet it was God that inflicted upon him the pain due to his sin. He was not the cause of Saul's sin, but he was the cause that in punishment of it the victory fell from his hands.
When therefore it happens that in punishment of our fault our holy designs have not good success, we must equally detest the fault by a solid repentance, and accept its punishment; for as the sin is against the will of God, so the punishment is according to his will.
Source: Treatise on the Love of God (CCEL)