Leviticus 24:23

21 Whoever kills an animal must make restitution, but whoever kills a man must be put to death.

22 You are to have the same standard of law for the foreign resident and the native; for I am the LORD your God.’”

Then Moses spoke to the Israelites, and they took the blasphemer outside the camp and stoned him. So the Israelites did as the LORD had commanded Moses.

This was said to Israel at a particular time, so it is wise to read it together with the surrounding text. Do read the surrounding verses too, because the context often says more than a single verse.

Compare

BSB
Then Moses spoke to the Israelites, and they took the blasphemer outside the camp and stoned him. So the Israelites did as the LORD had commanded Moses.
KJV
And Moses spake to the children of Israel, that they should bring forth him that had cursed out of the camp, and stone him with stones. And the children of Israel did as the LORD commanded Moses.
WEB
Moses spoke to the children of Israel; and they brought him who had cursed out of the camp, and stoned him with stones. The children of Israel did as the LORD commanded Moses.
ASV
And Moses spake to the children of Israel; and they brought forth him that had cursed out of the camp, and stoned him with stones. And the children of Israel did as Jehovah commanded Moses.
DARBY
And Moses spoke to the children of Israel; and they led the reviler outside the camp and stoned him with stones. And the children of Israel did as Jehovah had commanded Moses.
BLB
And Moses spoke to the sons of Israel, and they took him who had cursed to the outside of the camp, and they stoned him with stones. And the sons of Israel did as YHWH had commanded Moses.
ÅB
Og Moses sa dette til Israels barn, og de førte spotteren utenfor leiren og steinet ham - Israels barn gjorde som Herren hadde befalt Moses.
OTB
Så talte Moses til israelittene, og de førte spotteren utenfor leiren og steinet ham. Israelittene gjorde akkurat som Herren hadde befalt Moses.
B1930
Og Moses sa dette til Israels barn, og de førte spotteren utenfor leiren og stenet ham - Israels barn gjorde som Herren hadde befalt Moses.

Study notes (Tyndale)

Original text and word study

Cross references