Train people well enough so they can leave, treat them well enough so they don't want to.
or simply: