Thomas Aquinas,
Summa Theologiae — Question 36 - OF THE QUALITIES REQUIRED TO THOSE WHO RECEIVE THIS SACRAMENT…
“ Wherefore, since in every order a man is appointed to lead others in Divine things, he who being conscious of mortal sin presents himself for Orders is guilty of presumption and sins mortally. Consequently holiness of life is requisite for Orders, as a matter of precept, but not as essential to the sacrament; and if a wicked man be ordained, he receives the Order none the less, and yet with sin withal. ”
