Tempering (typically ~150-650 °C) usually follows hardening and adjusts hardness/toughness; stress relief annealing (depending on the material ~450-650 °C) is primarily aimed at stress relief, even for non-hardened, e.g. welded, machined and formed parts.