Abraham Lincoln actually said...
The discipline and character of the national forces should not suffer nor the cause they defend be imperiled by the profanation of the day or name of the Most High.
Context
Executive Order—General Order Respecting the Observance of the Sabbath Day in the Army and Navy
11/14/1862