Then our Lord is urged on by his brethren. First, we are given their advice; secondly, the reason for it (v 3b); and thirdly, the Evangelist mentions the cause of this reason (v 5).
As to the first, the ones who urge Christ are mentioned; hence he says, So his brethren said to him. These were not brothers of the flesh or of the womb, as the blasphemous opinion of Elvidius would have it. It is, indeed, offensive to the Catholic faith that the most holy virginal womb, which bore him who was God and man, should later bear another mortal man. Thus, they were his brothers or brethren in the sense ...of relatives, because they were related by blood to the Blessed Virgin Mary. For it is the custom in Scripture to call relatives "brothers," as in Genesis (13:8): "Let us not quarrel, for we are brothers," although Lot was the nephew of Abraham. And, as Augustine says, just as in the tomb in which our Lord's body had been placed no other body was placed either before or after, so the womb of Mary conceived no other mortal person either before or after Christ. Although some of the relatives of the Blessed Virgin were apostles, such as the sons of Zebedee, and James of Alpheus, and some others, we should not think that these were among those who were urging Christ; this was done by other relatives who did not love him.
Secondly, we see their advice when they say: Leave this place, that is, Galilee, and go to Judea, where you will find Jerusalem, a sacred place, well-suited to teachers. "Seer, go, flee to the land of Judah. There eat your bread and there prophesy" (Am 7:12).
They give their reason when they say: so that your disciples also may see your works which you perform. Here they show, first, that they are hungry for an empty glory; secondly, that they are suspicious; and thirdly, do not believe [in our Lord].
They show that they are hungry for an empty glory when they say, so that your disciples also may see your works which you perform. For they allowed something human to Christ and wanted to share the glory of the human honor that the people would show him. And so, they urged him to perform his works in public: for it is a characteristic of one who is seeking human glory to want publicly known whatever of his own or of his associates can bring glory. "They like to pray at street corners, so people can see them" (Mt 6:5). We read of such people: "For they loved the glory of men, more than the glory of God" (below 12:43).
Source: Commentary on John