 Egil was shipwrecked on a nearby shore and came before Erik, who sentenced him to death.But Egil composed a "drápa" called "Höfuðlausn" in Erik's praise over a single night.When he recited it in the morning, Erik gave him his freedom and forgave the killing of Rögnvald, against Gunnhild's wishes.