Get the shock of one’s life

To receive a serious emotional shock.

I got the shock of my life when I saw my teacher on TV.