promise not to
Cumples tu condena y prometes no volverlo a hacer, ¿verdad?
You'll serve your sentence and promise not to do it again, right?
— Sympathy for Lady Vengeance (2005)