He said this to show the kind of death by which Peter would glorify God. After saying this, Jesus said to Peter, "Follow me."