And even 3000 years before Aquinas:
"Anu and Bel called by name me, Hammurabi, the exalted prince, who feared God, to bring about the rule of righteousness in the land, to destroy the wicked and the evil-doers; so that the strong should not harm the weak; so that I should rule over the black-headed people like Shamash, and enlighten the land, to further the well-being of mankind.
...
That the strong might not injure the weak, in order to protect the widows and orphans, I have in Babylon the city where Anu and Bel raise high their head, in E-Sagil, the Temple, whose foundations stand firm as heaven and earth, in order to bespeak justice in the land, to settle all disputes, and heal all injuries, set up these my precious words, written upon my memorial stone, before the image of me, as king of righteousness. ... let the oppressed, who has a case at law, come and stand before this my image as king of righteousness; let him read the inscription, and understand my precious words: the inscription will explain his case to him."