Then when he says: Now, brethren, he proves by examples that the gift of prophecy is more excellent than the gift of tongues, and this in three ways: first, by giving an example taken from himself; secondly, by an example taken from inanimate things (v. 17); thirdly by an example taken from men speaking different language (v. 10).
Using himself as an example he argues this: Consequently, it is clear that I do not have the gift of tongues less than you. But if I were to speak to you only in tongues and did not interpret, you would not profit at all. Therefore, neither would you from one anothe...r. And this is what he says: Now brethren, if I come to you speaking in tongues. This can be understood in two ways, namely, either by an unknown language, or literally, by whatever sign that is not understood.
How shall I benefit you, unless I bring you some revelation or knowledge or prophecy or teaching? It should be noted that those four things, namely, revelation, knowledge, prophecy, teaching, can be distinguished in two ways: in one way according to the things they concern. In this way, it should be noted that the illumination of the mind for understanding concerns four things, because it is either about divine things, and this illumination of the mind pertains to the gift of wisdom. For, as was stated above, revelation is concerned with divine things, because "the things of God no one knows except the spirit of God" (1 Cor 2:11). Therefore, he says: in revelation, by which the mind is enlightened to know divine things. Or it is about earthly things, not just any but only about those which pertain to the building up of faith: and this pertains to the gift of knowledge. Therefore he says: in knowledge, not geometry or astronomy, because these do not pertain to the building up of the faith, but in knowledge of holy things: "He gave them knowledge of holy things" (Wis 10:10). Or it is about future events, and this pertains to the gift of prophecy: hence he says: or in prophecy: "She has foreknowledge of signs and wonders and of the outcome of seasons and of times" (Wis 8:8). It should be noted that prophecy is not taken here as it is generally used and was explained above, but it is taken here in a special sense, as a manifestation of future events only. In this sense it is defined by Cassiodorus: "Prophecy is divine inspiration announcing with infallible truth the future of things." "I will again pour out teaching like prophecy" (Sir 24:33). Or is it is about moral acts, and this pertaining to teaching; therefore he says: Or teaching: "He that teaches, in teaching" (Rom 12:7); "Good teaching wins favor" (Pr 13:15).
They can be distinguished in another way according to the various ways that knowledge is from a supernatural source, namely, God, or from a natural, i.e., the natural light of the intellect. If it is from a supernatural principle, namely, by a divinely infused light, it can happen in two ways: because it is either infused by sudden knowledge, and then it is revelation; or it is infused successively, and then it is prophecy, which the prophets did not have suddenly but successively and by parts, as their prophecies show. But if the knowledge is acquired by a natural principle, this is either through one's own study and then it pertains to knowledge, or it is presented by someone else, and then it pertains to teaching.
Source: Commentary on 1 Corinthians