1 Peter 4:6
For to this end the Good News was preached even to the dead, that they might be judged indeed as men in the flesh, but live as to God in the spirit.
World English Bible (Public Domain)
In context
Before · 1 Peter 4:4–5
4They think it is strange that you don’t run with them into the same excess of riot, speaking evil of you. 5They will give account to him who is ready to judge the living and the dead.
6For to this end the Good News was preached even to the dead, that they might be judged indeed as men in the flesh, but live as to God in the spirit.