Once. I took a job I didn't particularly want to take. I had interviewed at several places, and got one offer without a chance to extend my decision. I took the job but my heart wasn't in it. Then I found (via voice message) that I had an offer from another employer and told my manager. He said I could leave midday, but there was no anger like I was being marched out. I'd been there for so little time that I had no personal items in my desk. I didn't even say bye to a colleague. I didn't even have my formal offer letter yet, so I probably should have waited and maybe collected some more pay.
I've been laid off and told to leave by the end of the day. However, that was an unexpected mass layoff where most of the division was gone. HR must have been preparing this for a week since there was a stack of layoff notices. Many of us went out to commiserate. The division leader (had no idea of this) was gone too and bought a round of drinks before heading back. It was a generous layoff though. We technically had several weeks notice and got a severance bonus on top of what was standard. We were also subject to being recalled. They didn't even send in security. After a week my old manager (one of the few still there) contacted me and asked if I could clean up some loose ends. I wasn't bitter about it and had a chance to say hi to the remaining people. I ended up starting a new job before the notice period was over. I remember someone asked about that, and we were told not to worry about it. I think some were worried about not getting severance.