Ulysses S. Grant (1822–1885) 18th President of the United States
Original quote from The Democratic Speaker's Hand-Book (1868), by Matthew Carey, p. 33. Often paraphrased as "If I thought this war was to abolish slavery, I would resign my commission and offer my sword to the other side".
Misattributed