Who wrote “If a man does not keep pace with his companions, perhaps it is because he hears a different drummer.”?

This is Henry David Thoreau's own line. The research found no earlier source.

If a man does not keep pace with his companions, perhaps it is because he hears a different drummer. Let him step to the music which he hears, however measured or far away.

Henry David Thoreau (1817-1862)

Walden; or, Life in the Woods, 1854, p. 348.

The line as shared, and as written

Usually shared as, credited to Henry David ThoreauIf a man does not keep pace with his companions, perhaps it is because he hears a different drummer.
In the source, by Henry David Thoreau
If a man does not keep pace with his companions, perhaps it is because he hears a different drummer. Let him step to the music which he hears, however measured or far away.

Who said it first

This is Henry David Thoreau's own line. The research found no earlier source.

Written by
Henry David Thoreau (1817-1862)
Usually credited to
Henry David Thoreau
Theme
Self-reliance

The source

Title
Walden; or, Life in the Woods
Year
1854
Publisher
Boston: Ticknor and Fields
Edition read
First edition
Part
Conclusion
Page
348
Copyright
Public domain in the US.

Open the source (Page scan)

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 Henry David Thoreau

Every quote in the collection