Find the word definition

Wiktionary
gather one's wits

vb. (alternative form of collect one's thoughts English)