I know someone who was planning to leave a toxic work environment earlier this year. By toxic, I mean mentally abusive and unfair, not in the sense of harmful physical materials.
She set a date on which she'd give notice to the company, but before that she was terminated. In this case she received a financial package which was even better than her quitting without one.