Exodus 32:24-34

24 And I said unto them, Whosoever hath any gold, let them break it off: so they gave it me; and I cast it into the fire, and there came out this calf.
25 And when Moses saw that the people were broken loose, (for Aaron had let them loose for a derision among their enemies,)
26 then Moses stood in the gate of the camp, and said, Whoso is on Jehovah's side, [let him come] unto me. And all the sons of Levi gathered themselves together unto him.
27 And he said unto them, Thus saith Jehovah, the God of Israel, Put ye every man his sword upon his thigh, and go to and fro from gate to gate throughout the camp, and slay every man his brother, and every man his companion, and every man his neighbor.
28 And the sons of Levi did according to the word of Moses: and there fell of the people that day about three thousand men.
29 And Moses said, Consecrate yourselves to-day to Jehovah, yea, every man against his son, and against his brother; that he may bestow upon you a blessing this day.
30 And it came to pass on the morrow, that Moses said unto the people, Ye have sinned a great sin: and now I will go up unto Jehovah; peradventure I shall make atonement for your sin.
31 And Moses returned unto Jehovah, and said, Oh, this people have sinned a great sin, and have made them gods of gold.
32 Yet now, if thou wilt forgive their sin--; and if not, blot me, I pray thee, out of thy book which thou hast written.
33 And Jehovah said unto Moses, Whosoever hath sinned against me, him will I blot out of my book.
34 And now go, lead the people unto [the place] of which I have spoken unto thee: behold, mine angel shall go before thee; nevertheless in the day when I visit, I will visit their sin upon them.
The American Standard Version is in the public domain.