Cites this verse
Reply to Objection 2: No one is bound to obey his superior by doing what is unlawful, as appears from what was said above concerning obedience (Question [104], Article [5]). Accordingly it may happen that he who is appointed to the office of prelate perceive something in himself on account of which it is unlawful for him to accept a prelacy. But this obstacle may sometimes be removed by the very person who is appointed to the pastoral cure---for instance, if he have a purpose to sin, he may abandon it---and for this reason he is not excused from being bound to obey definitely the superior who has appointed him. Sometimes, however, he is unable himself to remove the impediment that makes the pastoral office unlawful to him, yet the prelate who appoints him can do so---for instance, if he be irregular or excommunicate. In such a case he ought to make known his defect to the prelate who has appointed him; and if the latter be willing to remove the impediment, he is bound humbly to obey. Hence when Moses had said (Ex. 4:10): "I beseech thee, Lord, I am not eloquent from yesterday, and the day before," the Lord answered (Ex. 4:12): "I will be in thy mouth, and I will teach thee what thou shalt speak." At other times the impediment cannot be removed, neither by the person appointing nor by the one appointed---for instance, if an archbishop be unable to dispense from an irregularity; wherefore a subject, if irregular, would not be bound to obey him by accepting the episcopate or even sacred orders.
Summa Theologiae II-II, q. 185, a. 2: Whether it is lawful for a man to refuse absolutely an appointment to the episcopate? Reply to Objection 2 (tr. Fathers of the English Dominican Province)