Exodus 32:30-33

30 And it came to pass on the morrow, that Moses said to the people, You have sinned a great sin: and now I will go up to the LORD; peradventure I shall make an atonement for your sin.

31 And Moses returned to the LORD, and said, Oh, this people have sinned a great sin, and have made them gods of gold.

32 Yet now, if you will forgive their sin; and if not, blot me, I pray you, out of your book which you have written.

33 And the LORD said to Moses, Whoever has sinned against me, him will I blot out of my book.