Wisdom of Solomon 12:22 (KJV)
Therefore whereas thou dost chasten us thou scourgest our enemies a thousand times more to the intent that when we judge we should carefully think of thy goodness and when we ourselves are judged we should look for mercy