Original: Heimdall was destined to be the last of the gods to perish at Ragnarök when he and Loki would slay one another.
Simplified: Heimdall was said to be the last of the gods to die at Ragnarök when he and Loki would kill one another.