The principal safeguard is seclusion, that you should not, God forbid, leave the house, save for some exceedingly great need.... And even in the synagogue you should be very short and leave quickly. It is better to pray at home, for in the synagogue it is impossible to be saved from envy, and from hearing vain talk and gossip, and one is punished for this.
Alim li-Terufa as cited in "Separation from the Worldly (Perishut)"