Eh, when they're dangling several months salary in front of you, signing a non-disparagement is a pretty hard thing to pass up.
Regardless it's pretty juvenile and self-destructive behavior to go around disparaging an employer for firing you to begin with. Getting a cash bonus for the self-censorship a rational adult should be exhibiting anyhow, is not such a bad thing