
1 Peter 4:6
6 For the gospel has for this purpose been preached even to those who are dead, that though they are judged in the flesh as men, they may live in the spirit according to the will of God.
Here Peter is speaking to all those who have died (before this letter). He is saying that if they heard the preaching of the gospel and accepted it, they will live for eternity in the Spirit.