In my native language, when we want to describe a situation in which a group of people suffer a special consequence regardless of how they performed or whether they deserve that or not, we say "(When fire comes,) wet and dry will burn together" meaning it doesn't matter whether there are dead branches or green branches, in case of a big fire all will burn. What we mean is 'the good suffer with the bad.'
A couple of students were shouting when the head teacher stepped in. He looked at us angrily and snarled,"next time I hear a sound, I'll send you all home, remember '(when fire comes,) wet and dry will burn together'"
The priest told us that it is not enough to be just a good man and we should warn others against their bad deeds because in case of God's wrath, 'wet and dry will burn together'.