And he cometh into the world that he may save all men if they will hearken unto his voice; for behold, he suffereth the pains of all men, yea, the pains of every living creature, both men, women, and children, who belong to the family of Adam.
And he suffereth this that the resurrection might pass upon all men, that all might stand before him at the great and judgment day.
2 Nephi 9:21-22
Read in scriptures: http://bit.ly/1LNj8H3