in which he also went and preached to the spirits in prison,
It is clear then that the meaning attributed to "spirits in prison" turns altogether upon the fact of when the preaching was done.  The next verse makes it certain that it was during the generation of Noah, a time when the "spirits" here mentioned were not "spirits" merely, but "souls"; therefore, "spirits in prison" is a reference to their status at the time Peter wrote.