It happened to me at Tudor Investment in NYC, which only has about 200 employees. I tried to quit when my daughter was born as I had found a better job anyways.
If I didn't stay an extra 3 months, my manager threatened to fire me 'with cause' so they could enforce my non-compete without paying me in New York.
So there I was working through some of the most incompetent shit from my dismal colleagues while my wife was trying to take care of our newborn baby while she couldn't walk due to delivery complications.
A week before I was supposed to go he mailed me a 25 item list of tasks to do before he would 'allow' me to quit, so I terminated my employment. After which, they claimed my non-compete was in force without pay.
Don't ever work for those fucking vultures at Tudor Investment.