Something similar in nature. But, only makes sense when one believes that there is a final judgement.
St. Augustine - City of God.
Book 1 - Chapter 8
For the good man is neither uplifted with the good things of time, nor broken by its ills; but the wicked man, because he is corrupted by this world’s happiness, feels himself punished by its unhappiness.
For if every sin were now visited with manifest punishment, nothing would seem to be reserved for the final judgment; on the other hand, if no sin received now a plainly divine punishment, it would be concluded that there is no divine providence at all. And so of the good things of this life: if God did not by a very visible liberality confer these on some of those persons who ask for them, we should say that these good things were not at His disposal; and if He gave them to all who sought them, we should suppose that such were the only rewards of His service; and such a service would make us not godly, but greedy rather, and covetous.
And thus it is that in the same affliction the wicked detest God and blaspheme, while the good pray and praise. So material a difference does it make, not what ills are suffered, but what kind of man suffers them. For, stirred up with the same movement, mud exhales a horrible stench, and ointment emits a fragrant odor.