Exodus 32:30-35 ESV
The next day Moses said to the people, “You have sinned a great sin. And now I will go up to the LORD; perhaps I can make atonement for your sin.” So Moses returned to the LORD and said, “Alas, this people has sinned a great sin. They have made for themselves gods of gold. But now, if you will forgive their sin—but if not, please blot me out of your book that you have written.” But the LORD said to Moses, “Whoever has sinned against me, I will blot out of my book. But now go, lead the people to the place about which I have spoken to you; behold, my angel shall go before you. Nevertheless, in the day when I visit, I will visit their sin upon them.” Then the LORD sent a plague on the people, because they made the calf, the one that Aaron made.