Exodus 32:27-35 New King James Version (NKJV)
27 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.’ ” 28 So the sons of Levi did according to the word of Moses. And about three thousand men of the people fell that day. 29 Then Moses said, [a]“Consecrate yourselves today to the Lord, that He may bestow on you a blessing this day, for every man has opposed his son and his brother.”
30 Now it came to pass on the next day that Moses said to the people, “You have committed a great sin. So now I will go up to the Lord; perhaps I can make atonement for your sin.” 31 Then Moses returned to the Lord and said, “Oh, these people have committed a great sin, and have made for themselves a god of gold! 32 Yet now, if You will forgive their sin—but if not, I pray, blot me out of Your book which You have written.”
33 And the Lord said to Moses, “Whoever has sinned against Me, I will blot him out of My book. 34 Now therefore, go, lead the people to the place of which I have spoken to you. Behold, My Angel shall go before you. Nevertheless, in the day when I visit for punishment, I will visit punishment upon them for their sin.”
35 So the Lord plagued the people because of what they did with the calf which Aaron made.