Num 15:35-36

5Then the Lord said to Moses, “The man shall be put to death; all the congregation shall stone him outside the camp.” 36The whole congregation brought him outside the camp and stoned him to death, just as the Lord had commanded Moses.