Question: what to say to a friend when they get laid off?
Answer: I'm so sorry to hear the news. I know how much time you devoted there. ... 
Do you want to talk about it? “Depending on the person and timing, they may or may not want to dredge up the memory. ... 
That's horrible news! “No drama — you want to be calm and low-key. ... 
They'll regret firing you.