Here the Apostle instructs them on how to use the gift of prophecy. In regard to the first he does two things: first, he shows how the gift of prophecy is to be used both as to number and to order; secondly, to whom the use of prophecy is prohibited (v. 34). In regard to the first he does three things: first, he teaches the order in which to use the gift of prophecy; secondly, the reason for this (v. 31); thirdly, he excludes an objection (v. 32). In regard to the first he does two things: first, he fixes on the number using this gift; secondly, he teaches the method or order of using it (v. 3...0).
In regard to the first it should be noted that the use of prophecy according to what the Apostle says here is to propose a word of instruction to the people, by explaining the Sacred Scripture. And because in the early Church there were many who had this gift from God and the number of the faithful was not very great, then in order to avoid confusion and boredom, the Apostle desires that not all who can explain a prophecy and Sacred Scripture should prophesy, but certain definite ones. And this is what he says: Let two or three prophets speak. As if to say: I do not want all who assemble, but two only or at most three, as the need to speak exists, should speak, i.e., exhort. This is in keeping with the Scriptures: "By the evidence of two or three witnesses" (Matt 18:16). Let the others, namely, those who should not prophesy, weigh the things proposed to them, whether something good or something bad has been said; approving what is good and making them retract what was wrong: "The spiritual man judges all things" (1 Cor 2:15).
Source: Commentary on 1 Corinthians