A second intervention by Stefan Potocki (with tacit assistance from Sigismund III, but against the will of Sejm and Senate) in 1612 was a complete failure. Potocki's 7,000 strong army was defeated on 19 July in the Battle of Sasowy Róg (near Ștefănești) by troops of Tomșa and Khan Temir's Tatars of the Budjak Horde. Stefan Potocki and Constantin Movilă ended their lives in Ottoman captivity in Constantinople. A counter-raid of Tatars and Tomșa on the Commonwealth was stopped by Żółkiewski without a fight, and an agreement between Żółkiewski and Tomșa was signed in October 1612 (at Khotyn). Tomșa assured about his friendliness, that he will help to patch up conflict between the Ottoman Empire and the Commonwealth and pledged allegiance to the Polish king.