Leviticus 24:22-23 English Standard Version (ESV)

22. You shall have the same rule for the sojourner and for the native, for I am the Lord your God.”

23. 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.

Leviticus 24