come to oneself

Avancé (C1) formal

To start thinking clearly and feeling like yourself again after being upset, shocked, or lost in thought.

"She sat quietly for a few minutes and gradually came to herself after the shock of the news."