Then the sea gave up the dead that were in it, and death and Hades gave up the dead that were in them; each one was judged according to their works.