The people of Israel were in the desert. One Sabbath day, people saw a man gathering wood.
References for Numbers 15:32
They brought him to Moses and Aaron and the whole community.
They kept him under guard. It wasn't clear what should be done to him.
Then the LORD said to Moses, "The man must die. The whole community must kill him by throwing stones at him. They must do it outside the camp."
So the people took the man outside the camp. There they killed him by throwing stones at him. They did just as the LORD had commanded Moses.