Gunnar was a close friend of Njáll Þorgeirsson of Bergþórshvol and came to him often for advice. Njáll told him not to kill two men of the same family — this would lead to his death. Njáll's prediction proved right. When Gunnar killed two family members of Gissur the White, the family sought vengeance and the men set out to Hlíðarendi to do murder. Njáll advised Gunnar to leave Iceland and head abroad to escape them. Initially, Gunnar intended to depart, but when he saw his homestead from the distance, he was so moved by the beauty of it that he changed his mind and decided to remain behind. This led to the epic battle in which Gunnar was killed.