Moses said to his people, ‘My people, you have wronged yourselves by worshipping the calf, so repent to your Maker and kill [the guilty among] you. That is the best you can do in the eyes of your Maker.’ He accepted your repentance: He is the Ever Relenting and the Most Merciful.
And remember Moses said to his people: "O my people! Ye have indeed wronged yourselves by your worship of the calf: So turn (in repentance) to your Maker, and slay yourselves (the wrong-doers); that will be better for you in the sight of your Maker." Then He turned towards you (in forgiveness): For He is Oft-Returning, Most Merciful.