Who said it first

Was John F kennedy the first to use the chiasmus “Ask not what your country can do for you, ask what you can do for your country”? I thought it went back to Ancient Greece.

Don’t know, but thanks for teaching me chiasmus.

I can’t get you back to the Greeks, but Bartlett’s Familiar Quotations provides a rich legacy of similarly stated thoughts:

This is from Fabulous Fallacies by Tad Tuleja: