Sit as little as possible; give credence to no thought that is not born in the open air and accompanied by free movement - in which the muscles do not also celebrate a feast.
Attribution checked
Quothly found supporting evidence for this attribution.
The wording appears in Nietzsche’s Ecce Homo (quoted in the PhilArchive entry), showing he wrote/said it in that work.
PhilArchive summary of Nietzsche's Ecce Homo