Thomas Aquinas,
Summa Theologiae — Question 3 - OF THE OUTWARD ACT OF FAITH…
“ Thus then it is not necessary for salvation to confess one's faith at all times and in all places, but in certain places and at certain times, when, namely, by omitting to do so, we would deprive God of due honor, or our neighbor of a service that we ought to render him: for instance, if a man, on being asked about his faith, were to remain silent, so as to make people believe either that he is without faith, or that the faith is false, or so as to turn others away from the faith; for in such cases as these, confession of faith is necessary for salvation. ”
