Nicholson – together with ten other British Army officers – were held captive at Ghazni in a filthy, ordure-ridden, lice-infested cell between 10 March and 19 August 1842. With the approach of the British "Army of Retribution", the captive officers began to receive considerably better treatment and they were taken to join other British prisoners of war in Kabul on 24 August where they dined with the leader of the revolt, Akbar Khan. Following the Battle of Kabul, Nicholson and the rest of the British prisoners were released in September 1842, after six long months of captivity.