aquinas ethicus: or, the moral teaching of st. thomas.
p. 140
as for that which is not absolutely necessary, but is necessary as a means to the end, being the means without which there can be no salvation—such a matter falls indeed under vow, inasmuch as it is done voluntarily, but not inasmuch as it is of necessity. But that which falls neither under absolute necessity, nor under the necessity of means to end, is altogether voluntary: it therefore is the most proper matter of a vow. This is called a greater good, in comparison with the good that is of ordinary necessity to salvation. Therefore, properly speaking, a vow is said to be of the better good.
§ 3. The maceration of the body by watchings and fastings, is not acceptable to God except so far as it is a work of virtue; and that it is in so far as it is done with due discretion, so that concupiscence may be restrained at the same time that nature is not overwhelmed. And on such terms these austerities may fall under vow. Therefore also the Apostle after saying, “Present your bodies a living sacrifice, holy, pleasing unto God,” added, “your reasonable service.” But because a man is easily deceived in his judgment on what concerns himself, the more fitting course with such vows is to submit them to the judgment of a superior, whether they are to be kept or set aside; yet so that if the person should feel great and manifest hardship from the observance of such a vow, and had no access to a superior, he ought not to keep such a vow. As for vows of vain and useless things, they are rather to be derided than kept.
Romans xii. r.