功成身退

Idiom

 * 1) to retire after accomplishing great tasks