Leviticus 24:10-23 NIV
Now the son of an Israelite mother and an Egyptian father went out among the Israelites, and a fight broke out in the camp between him and an Israelite. The son of the Israelite woman blasphemed the Name with a curse; so they brought him to Moses. (His mother’s name was Shelomith, the daughter of Dibri the Danite.) They put him in custody until the will of the LORD should be made clear to them.
Then the LORD said to Moses: “Take the blasphemer outside the camp. All those who heard him are to lay their hands on his head, and the entire assembly is to stone him. Say to the Israelites: ‘Anyone who curses their God will be held responsible; anyone who blasphemes the name of the LORD is to be put to death. The entire assembly must stone them. Whether foreigner or native-born, when they blaspheme the Name they are to be put to death.
“ ‘Anyone who takes the life of a human being is to be put to death. Anyone who takes the life of someone’s animal must make restitution—life for life. Anyone who injures their neighbor is to be injured in the same manner: fracture for fracture, eye for eye, tooth for tooth. The one who has inflicted the injury must suffer the same injury. Whoever kills an animal must make restitution, but whoever kills a human being is to be put to death. You are to have the same law for the foreigner and the native-born. I am the LORD your God.’ ”
Then Moses spoke to the Israelites, and they took the blasphemer outside the camp and stoned him. The Israelites did as the LORD commanded Moses.
NIV: New International Version