The remaining bands of armed Cossacks were soon defeated and "pushed back into the holes they crawled from", as one contemporary author put it. The remnants of the Cossack forces capitulated on 24 December 1637 in the town of Borowica, between the Dnieper and Taśmina Rivers. The Polish commander in chief gave his word to the defeated Cossacks that both ordinary soldiers and their leader would be spared. In return, the Cossacks surrendered their arms and their remaining leaders. The person to sign the agreement in the name of the Cossacks was Bohdan Khmelnytsky who 11 years later led the largest Cossack uprising against the Commonwealth.