Secondly, he proves his statement that prophecy is for the honor of God and the benefit of our neighbors. Hence he says, He who prophesies, i.e., explains visions or Scriptures, speaks to men, i.e., to the human intellect for the upbuilding of beginners and encouragement of the proficient and the consolation of the desolate. "Comfort the fainthearted (1 Th 5:14); "Speak and persuade" (Titus 2:15), for the consolation of the desolate. Or upbuilding pertains to spiritual affection, because one's spiritual edifice first begins there: "In whom you are also built into it" (Eph 2:22). But exhortatio...n pertains to inducement to good acts, because if the will is good, then the act is good: "Declare and exhort these things" (Titus 2:15). Consolation on the other hand induces one to tolerate evils: "Whatever was written in former days was written for our instruction" (Rom 15:4). Those who preach the divine scriptures induce people to these three things.
Source: Commentary on 1 Corinthians