John Pegram
John Pegram (January 24, 1832 – February 6, 1865) was a career soldier from Virginia who served as an officer in the United States Army and then as a brigadier general in the Confederate Army during the American Civil War. He became the first former U.S. Army officer to be captured in Confederate service in 1861 and was killed in action near the end of the war.
In May 1861, when news arrived that his native Virginia had seceded, Pegram resigned his lieutenant's commission and returned home. In early July 1861, he accepted a commission as a lieutenant colonel and was assigned command of the 20th Virginia Infantry.
On July 11, 1861, cut off from Garnett's main body during the Battle of Rich Mountain, Pegram controversially surrendered his entire regiment to the Federals. Thus John Pegram became the first former U.S. Army officer to be captured while in Confederate service.[3] His men were paroled, but Pegram was imprisoned for six months in Fort Warren in Boston harbor.
In January 1862, Pegram was paroled in Baltimore, Maryland, and allowed to travel to Richmond while awaiting a formal exchange for a captive Union officer. There, he met prominent socialite Hetty Cary, who became his fianceé. When finally exchanged, Pegram was promoted to colonel and became the Chief Engineer of the army of General Pierre G. T. Beauregard and then to Braxton Bragg. Within a short time, he was assigned as Chief of Staff for Maj. Gen. Edmund Kirby Smith and served in the Kentucky Campaign.
Pegram was promoted to brigadier general in November 1862 and given command of a cavalry brigade.
He remained in command, however, and was ordered to report to the Army of Northern Virginia in October.
Pegram was given command of a veteran Virginia infantry brigade in the division of Jubal A. Early. In May, Pegram was wounded at the Battle of the Wilderness and went home to recuperate. Returning to field duty that fall, he served with distinction during Early's independent Valley Campaign as a division commander.
On January 19, 1865, Pegram married Hetty Cary in a well-attended ceremony in St. Paul's Church in Richmond. Among the celebrants was Confederate President Jefferson Davis and his wife, Varina. Less than three weeks later, Pegram was killed in action during the Battle of Hatcher's Run.
https://en.wikipedia.org/wiki/John_Pegram_(general)