Lick one’s wounds

To think about and reflect on something that has embarrassed you or caused you loss or disappointment.

The politician went for a holiday in order to lick his wounds after he lost the election.