 He was wounded and taken prisoner at Chancellorsville on May 3, 1863, along with all but one of his immediate staff.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.