The Apostle writes this epistle with the purpose of bestowing praise upon certain brethren. He writes to Gaius, of whom he testifies that he receives many strangers, and for this bestows upon him great praise. For "he who does good is of God," he says (3 John 1:11). He further encourages him by the fact that he disapproves of Diotrephes, who does not wish to act in this way. He praises Demetrius, who acts in the same manner as Gaius, and gives a true testimony of his virtue. "As your soul prospers"; and it prospers in the life according to the Gospel.
Source: Commentary on 3 John