The Confederate attack continued on June 27 and Reynolds, exhausted from the Battle of Gaines' Mill and two days without sleep, was captured in Boatswain's Swamp, Virginia. Thinking he was in a place of relative safety, he fell asleep and was not aware that his retreating troops left him behind. He was extremely embarrassed when brought before the Confederate general of the capturing troops; D.H. Hill was an Army friend and colleague from before the war. Hill allegedly told him, "Reynolds, do not feel so bad about your capture, it is the fate of wars." Reynolds was transported to Richmond and held at Libby Prison, but was quickly exchanged on August 15 (for Lloyd Tilghman).