וַיְדַבֵּ֨ר אֶל־הָעֵדָ֜ה לֵאמֹ֗ר ס֣וּרוּ נָ֡א מֵעַל֩ אָהֳלֵ֨י הָאֲנָשִׁ֤ים הָֽרְשָׁעִים֙ הָאֵ֔לֶּה וְאַֽל־תִּגְּע֖וּ בְּכָל־אֲשֶׁ֣ר לָהֶ֑ם פֶּן־תִּסָּפ֖וּ בְּכָל־חַטֹּאתָֽם׃
他對會眾說:「請你們離開這些惡人的帳棚,他們的任何東西都不可碰,免得你們因他們的一切罪孽而一同被消滅。」
Sefer Chasidim
One should not travel with a wicked person neither on the same road, nor on the same ship lest he be damaged on his account. Don't hang around with a wicked person who causes damage to many (neither on a road nor on a ship) as is written "... So that you won't perish because of their wicked deeds" (Bemidbar 16:26)