Sophocles said this quote

Evil gains work their punishment.