Hays was exchanged on May 15, 1863, and sent to Fort Monroe in Virginia. Although without an official command, he rejoined the Army of the Potomac and accompanied it to Gettysburg, Pennsylvania. During Pickett's Charge on July 3, Maj. Gen. Winfield S. Hancock was severely wounded but refused to leave the field until the battle had been decided.[1][2][3] When it became clear the Confederate charge had been defeated Hancock relinquished command temporarily to his 1st Division commander, Brig. Gen. John C. Caldwell. Later that evening, Hays (although still a brigadier general and junior in rank to Caldwell), was assigned to command the II Corps.[4] He led the corps throughout the summer until permanent command was given to Maj. Gen. Gouverneur K. Warren in mid-September. In November, Hays was appointed provost marshal of the southern district of New York, and was also promoted to major in the regular army.
At the expiration of his term in February 1865, Hays rejoined the Army of the Potomac at Petersburg and served again in the II Corps, this time commanding the 2nd Division. He was appointed a brevet brigadier general in the regular army on March 13, 1865, for gallant conduct, but on April 6 he was relieved of command for sleeping on duty and thus failing to prepare his troops for departure as they pursued Confederate forces. His brevets were revoked and Brig. Gen. Francis C. Barlow was assigned to lead the division. From that date, Hays commanded the Artillery Reserve of the Army of the Potomac until he was mustered out of volunteer service in January 1866.
Later life
Reverting to his permanent rank of major of the 5th U.S. Artillery, Hays served on various posts, commanding Fort Independence in Boston Harbor from April 1873 until his death there almost two years later. He was buried in Yonkers, New York, but was re-interred at West Point Cemetery in 1894.
Clark, Champ, and the Editors of Time-Life Books. Gettysburg: The Confederate High Tide. Alexandria, VA: Time-Life Books, 1985. ISBN0-8094-4758-4.
Eicher, John H., and David J. Eicher. Civil War High Commands. Stanford, CA: Stanford University Press, 2001. ISBN0-8047-3641-3.
Pfanz, Harry W. The Battle of Gettysburg. National Park Service Civil War series. Fort Washington, PA: U.S. National Park Service and Eastern National, 1994. ISBN0-915992-63-9.