gather (one's) wits
To try to calm oneself and think clearly and rationally. Sir, you've just been in an car accident. Take a moment to gather your wits, then please tell us what happened. If your opponent starts badgering you during the debate, remember to gather your wits before responding.
gather (or collect) your wits
bring yourself back to a state of equanimity. 1984 Geraldine McCaughrean The Canterbury Tales Poor old man, he was too astonished to speak. And before he could collect his wits, he was sitting at table…with his lord on one side and his daughter on the other.
collect/gather your ˈwits
try to become calm and think clearly: After such a shock I found it difficult to gather my wits.