Catechism of the Council of Trent
1547
Part III. The Fifth Commandment
Killing In A Just War
Furthermore, there are on record instances of carnage executed by the special command of God. The sons of Levi, who put to death so many thousands in one day, were guilty of no sin; when the slaughter had ceased, they were addressed by Moses in these words: You have consecrated your hands this day to the Lord.