save the day
US /seɪv ðə deɪ/
UK /seɪv ðə deɪ/

1.
to prevent a disaster or a difficult situation from happening or becoming worse
:
•
Just when we thought all was lost, a last-minute goal saved the day for our team.
•
The unexpected donation saved the day for the struggling charity.