John 12:42

Amplified Bible (AMP)
Nevertheless, even many of the leading men believed in Him [as Savior and Messiah], but because of the Pharisees they would not confess it, for fear that [if they acknowledged Him openly] they would be put out of the synagogue (excommunicated);

Read John 12:42 in other translations