After the sin of Baal Peor, as the Yerushalmi set out, many of Israel were slain, and through Pinchas the plague was stopped. Pirkei DeRabbi Eliezer set out that Pinchas placed a herem on wine of non-Jews, but this was not fully accepted. Rav said Daniel decreed only in the city, and Shmuel said he was stringent only on himself.