Leviticus 24:22-23 New King James Version (NKJV)

22. You shall have the same law for the stranger and for one from your own country; for I am the Lord your God.’ ”

23. Then Moses spoke to the children of Israel; and they took outside the camp him who had cursed, and stoned him with stones. So the children of Israel did as the Lord commanded Moses.

Leviticus 24