Exodus 32:27
ESV
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.’"
NIV
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.’ "
NASB
And he said to them, 'This is what the Lord, the God of Israel says: ‘Every man of you put his sword on his thigh, and go back and forth from gate to gate in the camp, and kill every man his brother, and every man his friend, and every man his neighbor.’?'
CSB
He told them, "This is what the Lord, the God of Israel, says, ‘Every man fasten his sword to his side; go back and forth through the camp from entrance to entrance, and each of you kill his brother, his friend, and his neighbor.’"
NLT
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.'
KJV
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.
NKJV
And he said to them, “Thus says the Lord God of Israel: ‘Let every man put his sword on his side, and go in and out from entrance to entrance throughout the camp, and let every man kill his brother, every man his companion, and every man his neighbor.’ ”
What does Exodus 32:27 mean?
Since leaving Egypt, Israel has disobeyed and complained (Exodus 16:3, 26–28; 17:2–3). Now they have directly violated one of God's commandments (Exodus 20:3–6). They made an idol despite explicit instructions not to (Exodus 32:1–6). The consequences are dire. Moses has called for loyal men, and the tribe of Levi has responded (Exodus 32:26). His instructions are probably the first time that violations of the Ten Commandments will be punished with death. Only one other instance may have happened earlier (Leviticus 24:10–16). It is certainly the first large-scale consequence which Israel suffered.Moses' command here does not mean targeting the literal family members of the assembled Levites. If "all" the Levites came to Moses, then "all" the brothers, companions, and such would be there. The language seems to be symbolic; it expresses that those killed are fellow Israelites.
Nor is this a call for random slaughter. The death count will be three thousand (Exodus 32:28), which would have been much greater if an entire tribe were to attack everyone they saw. Most interpreters believe the Levites targeted the main culprits in insisting that Aaron make an idol. The idol-dusted water consumed earlier (Exodus 32:20) might have been part of a test, and those killed were the ones who failed. Another possibility raised is that Moses is executing a certain proportion of the population, a practice made famous in the Roman concept of "decimation."
Few other details make themselves clear. Scripture only informs us that the Levites performed these executions under Moses' orders. While tragic, God's response could have been far more severe (Exodus 32:9–10).