2010 Above, our Lord urged us to love our neighbor, based on his example. Here, Christ shows his disciples the benefit conferred upon them which obliges them to imitate him, which is, that he has embraced them in his love. First, he mentions a sign of friendship; secondly, the cause of this friendship (v 16). He gives two signs of friendship: one is found in the disciples; the other in himself (v 15).
2011 The sign in the disciples that they are friends of Christ is that they keep his commandments; he says, You are my friends if you do what I command you. He is saying in effect: Up to now I h...ave urged you to love one another, but now I am speaking and teaching you about your friendship with me.
The statement, you are my friends can be understood in two ways, based on the two ways someone is called a friend. A person is called a friend either because he loves or because he is loved. And what follows, if you do what I command you is true for both meanings of friend. Those who love God keep his commandments, and because a friend is, as Gregory says, in a way the guardian of the other's soul, it is appropriate that one who guards or keeps the will of God in his commandments is called the friend of God. Again, those whom God loves keep his commandments, because by conferring his grace on them he helps them to keep them: for by loving us, God makes us love him: "I love those who love me" (Prv 8:17). It is not they who first loved God, but God makes them lovers by loving them.
2012 Note that keeping the commandments is not the cause of divine friendship but the sign, the sign that both God loves us and that we love God: "Love of her [Wisdom] is the keeping of her laws" (Wis 6:19); "He who says he loves him and does not keep his commandments is a liar" [1 Jn 2:4].
Source: Commentary on John