לישועת אלחנן בן הענא מרים
Hilchos Lashon Hara chapter 9, section 3
One must be careful not to give praise that leads to loss. For example, to publicize that someone provided him with eat and drink and went to a lot of trouble for him, for through this many empty people will go to him and deplete his money. Regarding this it says, If who blesses his fellow with a loud voice early in the morning - it is regarded as a curse for him (Proverbs 27:14). From this we learn that if one got a loan, he should not publicize the lender's generosity. It is also dust of lashon hara to say things that make people suspect he is speaking lashon hara.
Hilchos Lashon Hara chapter 9, section 4
It is forbidden to live in the neighborhood of people who constantly speak lashon hara (baalei lashon hara), and even more to sit with them and listen to them even if one does not intend to believe what they say as we wrote earlier (6:2). If one's disciple speaks lashon hara constantly one should banish him if one knows rebuke will not help.
If one finds oneself among a group of such people due to circumstances outside one's control and finds they are speaking lashon hara, if one estimates that rebuke will stop them, one is certainly obligated by Torah law to rebuke them. Even if one estimates that rebuke will not stop them but figures it won't make them speak more lashon hara, one is not allowed to keep silent. For people might say he is like them and agreed to what they said. One is also obligated to speak up and rebuke them for the honor of the innocent person they are speaking of. This is one of the reasons one is obligated to leave such a group, for one is punished if one listens and does not rebuke them.