Exodus 32:27

27 Then he said to them, “This is what the LORD, the God of Israel, says: ‘Each man strap a sword to his side. Go back and forth through the camp from one end to the other, each killing his brother and friend and neighbor.’ ”

Read Exodus 32:27 Using Other Translations

And he said unto them, Thus saith the LORD God of Israel, Put every man his sword by his side, and go in and out from gate to gate throughout the camp, and slay every man his brother, and every man his companion, and every man his neighbour.
And he said to them, "Thus says the LORD God of Israel, 'Put your sword on your side each of you, and go to and fro from gate to gate throughout the camp, and each of you kill his brother and his companion and his neighbor.'"
Moses told them, “This is what the LORD, the God of Israel, says: Each of you, take your swords and go back and forth from one end of the camp to the other. Kill everyone—even your brothers, friends, and neighbors.”

What does Exodus 32:27 mean?

John Gill's Exposition of the Bible
Exodus 32:27

And he said unto them, thus saith the Lord God of Israel,
&c.] The following orders are given by Moses, not of himself the chief magistrate, and as the effect of heat and passion, but there were from the Lord, who was Israel's God and King; he had them expressly from him, or by an impulse on his spirit, or in such a way and manner that he knew it was of God, and this was his will:

put every man his sword by his side;
girt there, ready to be drawn upon order:

and go in and out from gate to gate throughout the camp;
not into the tents, where good men might be bemoaning the sin committed, but throughout the streets, where many were loitering, it being a holy day with the idolaters:

and slay every man his brother, and every man his companion, and
every man his neighbour;
who were idolaters; none were to be spared on account of relation, friendship, and acquaintance.

California - Do Not Sell My Personal Information  California - CCPA Notice