Leviticus 24:17-23 ESV
“Whoever takes a human life shall surely be put to death. Whoever takes an animal’s life shall make it good, life for life. If anyone injures his neighbor, as he has done it shall be done to him, fracture for fracture, eye for eye, tooth for tooth; whatever injury he has given a person shall be given to him. Whoever kills an animal shall make it good, and whoever kills a person shall be put to death. You shall have the same rule for the sojourner and for the native, for I am the LORD your God.” So Moses spoke to the people of Israel, and they brought out of the camp the one who had cursed and stoned him with stones. Thus the people of Israel did as the LORD commanded Moses.
ESV: English Standard Version 2016