引退 is formal/literary and typically used for public figures stepping down from office, the stage, or sports - politicians, executives, celebrities. For ordinary retirement from a job, use 退休.
usage
Common in Japanese-influenced contexts: 引退 (いんたい) is the standard Japanese word for an athlete or entertainer's retirement, and Chinese sports and entertainment journalism often borrows the same framing.