Text (SH+errata): Enchant creature. ; Whenever enchanted creature attacks, return it and ~this~ to their owners' hands at end of combat. [Oracle 2009/07/08]
If the creature dies before the end of combat, neither will return to your hand, because Contempt will be put into the graveyard when the creature dies. [Barclay 1998/02/27]
If Contempt is moved to another creature after the creature attacks, Contempt will still return to your hand at end of combat whether or not the creature dies. [D'Angelo 1998/03/23]