Jesus said this to indicate the kind of death1 by which Peter would glorify God.2 Then he said to him, "Follow me!"3
References for John 21:19
Peter turned and saw that the disciple whom Jesus loved4 was following them. (This was the one who had leaned back against Jesus at the supper and had said, "Lord, who is going to betray you?")5
References for John 21:20
When Peter saw him, he asked, "Lord, what about him?"
Jesus answered, "If I want him to remain alive until I return,6 what is that to you? You must follow me."7
References for John 21:22
Because of this, the rumor spread among the brothers8 that this disciple would not die. But Jesus did not say that he would not die; he only said, "If I want him to remain alive until I return, what is that to you?"
References for John 21:23
This is the disciple who testifies to these things9 and who wrote them down. We know that his testimony is true.10
References for John 21:24