You’re thinking of the first time this was said, and it was said by an actual soldier — Black Jack Pershing — not by an overintellectualized academic who became President and thought he could remake the world in the image of his academic theories — something that seems to happen every hundred years or so.
It gets misattributed to Pershing. It was Col Stanton, one of Pershing’s aides.