Rutherford Hayes actually said...
No soldiers, either of the Union or of the State militia, should be present at the polls to take the place or to perform the duties of the ordinary civil police force.
Context
Message to the House of Representatives Returning Without Approval 'An Act to Prohibit Military Interference at...'
05/11/1879