Strive not to be a success, but rather to be of value
Attribution checked
Quothly found supporting evidence for this attribution.
Research by Quote Investigator documents the wording (modern variants: “Strive not to be a success, but rather to be of value” / “Try not to become a man of success but rather try to become a man of value”) as attributed to Albert Einstein and traces its publication history (including a Life magazine appearance).
Quote Investigator — "Try Not To Become a Man of Success But Rather Try To Become a Man of Value"