Joshua 9:18

But the children of Israel did not attack them, because the rulers of the congregation had sworn to them by the LORD God of Israel. And all the congregation complained against the rulers.