They kept him in custody until the LORD told them what to do.
The LORD spoke to Moses,
"The man who cursed [my name] must be taken outside the camp. All who heard him curse [my name] must lay their hands on his head. Then the whole congregation must stone him to death.
"Also tell the Israelites: Those who treat their God with contempt will be punished for their sin.
But those who curse the LORD's name must be put to death. The whole congregation must stone them to death. It makes no difference whether they are Israelites or foreigners. Whoever curses the LORD's name must die.
"Whoever kills another person must be put to death.
Whoever kills an animal must replace it, life for life.
Whoever injures a neighbor must receive the same injury in return--
a broken bone for a broken bone, an eye for an eye, a tooth for a tooth. Whoever injures another person must receive the same injury in return.
Whoever kills an animal must replace it. Whoever kills a person must be put to death.
The same rule applies to every one of you. It makes no difference whether you are a foreigner or an Israelite, because I am the LORD your God."