Exodus 32:26-28

32:26 So Moses stood at the entrance of the camp and said, “Whoever is for the Lord, come to me.” All the Levites gathered around him, 32:27 and he said to them, “Thus says the Lord, the God of Israel, ‘Each man fasten his sword on his side, and go back and forth from entrance to entrance throughout the camp, and each one kill his brother, his friend, and his neighbor.’”

32:28 The Levites did what Moses ordered, and that day about three thousand men of the people died.