Who wrote “Our greatest glory is not in never falling, but in rising every time we fall.”?

Confucius did not write it. Oliver Goldsmith did.

Our greatest glory is, not in never falling, but in rising every time we fall.

Oliver Goldsmith (1728-1774)

The Citizen of the World; or Letters from a Chinese Philosopher, Vol. I, 1762, p. 23.

Often credited to Confucius, Emerson and Mandela. Oliver Goldsmith wrote it in 1762, for an invented Chinese philosopher.

The line as shared, and as written

Usually shared as, credited to Confucius (also Emerson, Mandela)Our greatest glory is not in never falling, but in rising every time we fall.
In the source, by Oliver Goldsmith
Our greatest glory is, not in never falling, but in rising every time we fall.

The words match. Only the punctuation or capitals differ, if anything does.

Who said it first

Often credited to Confucius, Emerson and Mandela. Oliver Goldsmith wrote it in 1762, for an invented Chinese philosopher.

Written by
Oliver Goldsmith (voiced by his fictional Chinese philosopher Lien Chi Altangi) (1728-1774)
Usually credited to
Confucius (also Emerson, Mandela)
Theme
Persistence and setbacks

The source

Title
The Citizen of the World; or Letters from a Chinese Philosopher, Vol. I
Year
1762
Publisher
London: J. Newbery
Edition read
First edition
Part
Letter VII per later editions (letter number not legible in the scan OCR)
Page
23
Copyright
Public domain in the US.

Open the source (Page scan)

Research notes

The Confucius credit makes sense once you see that Goldsmith wrote it for an invented Chinese sage, and the same letter addresses a 'disciple of Tao'. Not in the Analects.

How this was checked

The wording above was read in the source named here, not taken from a quote site. Quote Investigator, Barry Popik and Wikiquote were used only to find where to look. Where the notes say a detail was not checked, treat it as unconfirmed.

More lines usually credited to Confucius

Every quote in the collection