All who have died without a knowledge of this Gospel, who would have received it if they had been permitted to tarry, shall be heirs of the celestial kingdom of God; also all that shall die henceforth without a knowledge of it, who would have received it with all their hearts, shall be heirs of that kingdom, for I, the Lord, will judge all men according to their works, according to the desire of their hearts.
Documentary History of the Church, Vol.2, chap.27, pg 380. Prophecy given at the Kirkland Temple, January 21, 1836. Given to Joseph due to his concern about his brother Alvin who died before the priesthood was restored and had not been baptized. The solution given later was baptizing for the dead.
The Bible plainly says that our works have nothing to do with earning salvation (Eph. 2:8-9, et al), but that they are the outworking of our salvation. Nothing in scripture says that one will be saved after death based on the possibility that they would have accepted the Gospel had they lived. In fact, Hebrews 9:27 says quite plainly, “…it is appointed for men to die once, but after this the judgment.” There is no second chance to hear the gospel and be baptized; once a person dies, he is immediately subject to judgment.
The lies of the Mormon church lead people to hell.