Thomas Aquinas said this quote

Mercy without justice is the mother of dissolution, justice without mercy is cruelty.