In case it is an individual who has sinned unwittingly, he shall offer a she-goat in its first year as a sin offering. The priest shall make expiation before the Lord on behalf of the person who erred, for he sinned unwittingly, making such expiation for him that he may be forgiven. For the citizen among the Israelites and for the stranger who resides among them--you shall have one ritual for anyone who acts in error.
But the person, be he citizen or stranger, who acts defiantly reviles the Lord; that person shall be cut off from among his people. Because he has spurned the word of the Lord and violated His commandment, that person shall be cut off--he bears his guilt.
Once, when the Israelites were in the wilderness, they came upon a man gathering wood on the sabbath day. Those who found him as he was gathering wood brought him before Moses, Aaron, and the whole community. He was placed in custody, for it had not been specified what should be done to him. Then the Lord said to Moses, "The man shall be put to death: the whole community shall pelt him with stones outside the camp." So the whole community took him outside the camp and stoned him to death--as the Lord had commanded Moses.
The Lord said to Moses as follows: Speak to the Israelite people and instruct them to make for themselves fringes on the corners of their garments throughout the ages; let them attach a cord of blue to the fringe at each corner. That shall be your fringe; look at it and recall all the commandments of the Lord and observe them, so that you do not follow your heart and eyes in your lustful urge. Thus you shall be reminded to observe all My commandments and to be holy to your God. I the Lord am your God, who brought you out of the land of Egypt to be your God: I, the Lord your God.