Leviticus 24:21-23 Christian Standard Bible (CSB)
21 Whoever kills an animal is to make restitution for it, but whoever kills a person is to be put to death. 22 You are to have the same law for the resident alien and the native, because I am the Lord your God.”
23 After Moses spoke to the Israelites, they brought the one who had cursed to the outside of the camp and stoned him. So the Israelites did as the Lord had commanded Moses.