Allah (Swt) tells us that whenever you hear people in a meeting, in a gathering, whenever you hear people blaspheme Allah, speak bad about Allah, say nasty dirty, ugly things about Allah or even about others; Allah says turn away from them.
Don’t be A part of it until they change the topic to something good. So this is also goodness that Allah subhanahu wa’ta’ala.
This verse is showing us not to participate in bad. If there is a group of people and they’re doing good, be a part of them. It will bring about a lot of comfort.
Only participate in that which is positive, that which is good, that which is filled with goodness, blessings and reaching out to people in a positive way.