snatch victory from the jaws of defeat

US /snætʃ ˈvɪktəri frəm ðə dʒɔz əv dɪˈfiːt/
UK /snætʃ ˈvɪktəri frəm ðə dʒɔz əv dɪˈfiːt/
"snatch victory from the jaws of defeat" picture
1.

to win a competition or achieve success when it seemed that you were certain to lose

:
The team managed to snatch victory from the jaws of defeat with a last-minute goal.
Despite being down by a large margin, they managed to snatch victory from the jaws of defeat in the final round.