“Every wrong done has a certain justice in it, and every good deed has dregs of evil.”
H. G. Wells wrote this in Tono-Bungay.
Where it appears
The perplexing thing about life is the irresolvable complexity of reality, of things and relations alike. Nothing is simple. Every wrong done has a certain justice in it, and every good deed has dregs of evil. As for us, young still, and still without self-knowledge, resounded a hundred discordant notes in the harsh angle of that shock. We were furiously angry with each other, tender with each other, callously selfish, generously self-sacrificing.
From the public-domain edition, read it free.