get while the gettin's good

get while the getting is good

To cease, end, or give up (doing) something before it becomes too difficult or the consequences become too severe. There are some reports that the market is about to take a dive, so I reckon we should get while the getting is good. Listen, kid, there's no way you can win this fight, so why don't you get out while the getting is good?
See also: get, good, while
Farlex Dictionary of Idioms. © 2015 Farlex, Inc, all rights reserved.

get while the gettin’s good

See also: get, good, while
McGraw-Hill's Dictionary of American Slang and Colloquial Expressions Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved.