Next (v 23), the disciple's question is stated. First we see the intimacy he had with Christ; secondly, what led him to ask (v 24); thirdly, his question (v 25).
The disciple's intimacy with Christ is shown by the fact that he was lying close to him. He says, one of the disciples was lying close to the lap of Jesus. This was John the Evangelist who wrote his Gospel. He wrote of himself in the third person to avoid boasting. In this he followed the custom of others who wrote Sacred Scripture. Moses wrote of himself this way, as though he were someone else: "and the Lord said to Moses" (Lev 11:...1). And so did Matthew: "He saw a man called Matthew sitting at the tax office" as we see from Matthew (Mt 9:9). And further on Paul did the same: "I know a man in Christ who fourteen years ago was caught up to the third heaven" (2 Cor 12:2).
John here mentions three things about himself. First, the love he had for Christ as he rested on him. John said that he was lying, that is resting: "Then you will delight yourself in the Almighty, and lift up your face to God" (Job 22:26); "He leads me beside the waters of rest" (Ps 23:2). Secondly, he intimates his knowledge of mysteries, which were made known to him by Christ, and especially for the writing of this Gospel. He says he was lying close to the lap of Jesus, for the lap signifies things that are hidden: "The only Son, who is in the lap of the Father, he has made him known" (1:18). Thirdly, he mentions the special love Christ had for him, saying, whom Jesus loved, not exclusively, but in a way above others. Exactly how Christ loved him more than others will be stated more clearly at the end of this book.
For the present, it is enough to say that John was more loved by Christ for three reasons. First, because of the cleanliness of his purity: for he was a virgin when chosen by the Lord, and always remained so: "He who loves purity of heart, and whose speech is gracious, will have the king as his friend" (Prv 22:11). Secondly, because of the depth of his wisdom, for he saw further into the secrets of God than others; and so he is compared to an eagle, "A wise servant has the king's favor" (Prv 14:35). Thirdly, because of the great intensity of his love for Christ: "I love those who love me" (Prv 8:17).
Source: Commentary on John