Rutherford Birchard Hayes (October 4, 1822 – January 17, 1893) was the 19th president of the United States from 1877 to 1881, after serving in the U.S. House of Representatives and as governor of Ohio. A lawyer and staunch abolitionist, he had defended refugee slaves in court proceedings during the antebellum years. An attorney in Ohio, Hayes served as city solicitor of Cincinnati from 1858 to 1861. After the war, he served in Congress from 1865 to 1867 as a Republican. Hayes and his troops did not arrive in time for the battle, but joined the Army of the Potomac as it hurried north to cut off Robert E. Lee's Army of Northern Virginia, which was advancing into Maryland. Marching north, the 23rd was the lead regiment encountering the Confederates at the Battle of South Mountain on September 14.