Exodus 32:27-28

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.