Because he thinks Huck has been killed, Jim takes Huck for a ghost and begs Huck not to hurt him. Huck doesn't, of course, and that counts as sparing him—though he also "spared" Jim by not letting the men who were looking for him know Jim was hiding there. Huck does this in part because he has no reason to hurt Jim, and in part because he himself is hiding out.
