1 Peter 4:5-6 KJV

5 Who shall give account to him that is ready to judge the quick and the dead.
6 For for this cause was the gospel preached also to them that are dead, that they might be judged * according to men in the flesh, but live according to God in the spirit.