Leviticus 24:21-23 New English Translation (NET Bible)
21 One who beats an animal to death must make restitution for it, but one who beats a person to death must be put to death. 22 There will be one regulation for you, whether a foreigner or a native citizen, for I am the Lord your God.’”
23 Then Moses spoke to the Israelites and they brought the one who cursed outside the camp and stoned him with stones. So the Israelites did just as the Lord had commanded Moses.