John 21:7
ESV - 7 That disciple whom Jesus loved therefore said to Peter, "It is the Lord!" When Simon Peter heard that it was the Lord, he put on his outer garment, for he was stripped for work, and threw himself into the sea.
For follow-up discussion and general commentary on the topic. Comments are sorted chronologically.
The disciple didn't reveal his name because he knew it was about Jesus, not himself.