strike while the iron is hot

Upper Intermediate (B2) informal

Act quickly while conditions are favorable.

"She got an offer from a competitor, so she struck while the iron was hot and negotiated a raise."