Orkneyinga saga
A similar account appears in the "Orkneyinga saga", but in this text, Sweyn remains inside and is burnt to death: