An object with mass 'm' moving with a velocity 'v' has kinetic energy 12mv2
In order to bring the object to rest, its velocity has to be reduced to zero. This means it's kinetic energy has to be drained off. An external force has to absorb energy from the object, i.e. do negative work equal to its kinetic energy, or
W=−12mv2