Leviticus 24:10-23
One day a man who had an Israelite mother and an Egyptian father came out of his tent and got into a fight with one of the Israelite men. During the fight, this son of an Israelite woman blasphemed the Name of the Lord with a curse. So the man was brought to Moses for judgment. His mother was Shelomith, the daughter of Dibri of the tribe of Dan. They kept the man in custody until the Lord’s will in the matter should become clear to them.
Then the Lord said to Moses, “Take the blasphemer outside the camp, and tell all those who heard the curse to lay their hands on his head. Then let the entire community stone him to death. Say to the people of Israel: Those who curse their God will be punished for their sin. Anyone who blasphemes the Name of the Lord must be stoned to death by the whole community of Israel. Any native-born Israelite or foreigner among you who blasphemes the Name of the Lord must be put to death.
“Anyone who takes another person’s life must be put to death.
“Anyone who kills another person’s animal must pay for it in full—a live animal for the animal that was killed.
“Anyone who injures another person must be dealt with according to the injury inflicted— a fracture for a fracture, an eye for an eye, a tooth for a tooth. Whatever anyone does to injure another person must be paid back in kind.
“Whoever kills an animal must pay for it in full, but whoever kills another person must be put to death.
“This same standard applies both to native-born Israelites and to the foreigners living among you. I am the Lord your God.”
After Moses gave all these instructions to the Israelites, they took the blasphemer outside the camp and stoned him to death. The Israelites did just as the Lord had commanded Moses.