If he hadn’t been looking forward to the resurrection of the dead, then it would have been unnecessary and frivolous to pray for them.