Term: ticket to heaven
Example: the bad guy took a bullet to save the girl thus buying his ticket to heaven
Definition: in the movies when a bad person sacrifices himself to save others it is said that he has purchased his ticket to heaven