Numbers 15:32-36 NIV
While the Israelites were in the wilderness, a man was found gathering wood on the Sabbath day. Those who found him gathering wood brought him to Moses and Aaron and the whole assembly, and they kept him in custody, because it was not clear what should be done to him. Then the LORD said to Moses, “The man must die. The whole assembly must stone him outside the camp.” So the assembly took him outside the camp and stoned him to death, as the LORD commanded Moses.
NIV: New International Version