Bolt from the blue noun phrase
Used when something happens suddenly or surprisingly
His decision to leave the company was a bolt from the blue.
The Covid-19 pandemic came like a bolt from the blue, and no country was prepared.
To be surprised by some sudden occurrence
To greatly surprise, shock, or confuse someone
Come out of a difficult situation without a stain on one's character
I don't understand how he can fall in shit and come out smelling like a rose.