Extending on this classical view of Lamech is the Book of Moses, regarded in Mormonism as scripture. According to this Latter-day Saint text, Lamech entered into a secret pact with Satan, as had Cain before him, becoming a second Master Mahan. When Irad (an ancestor of Lamech) learned his secret and began to publicise it, Lamech murdered him.