Peter turned and saw that the disciple whom Jesus loved1 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?")2
References for John 21:20
When Peter saw him, he asked, "Lord, what about him?"