Baptism for the dead is best known as a doctrine of the Latter Day Saint movement, which has practiced it since 1840. ... The LDS Church teaches that those who have died may choose to accept or reject the baptisms done on their behalf.
Why do you baptize for the dead?
The Power of Christ's Resurrection
why are they then baptized for the dead?” (1 Corinthians 15:29). We are baptized for the dead because we know that they will rise. ... “For to this end Christ both died, and rose, and revived, that he might be Lord both of the dead and living” (Romans 14:9).
What happens if someone dies without being baptized?
As regards children who have died without Baptism, the Church can only entrust them to the mercy of God, as she does in her funeral rites for them. ... All the more urgent is the Church's call not to prevent little children coming to Christ through the gift of holy Baptism.