It was the Jewish Pirkei Avot (Sayings of the fathers) that stated  "seven kinds of punishment comes to the world due to seven kinds of transgressions the sword of war comes due to delay and perversion of justice