1 Corinthians 14:23-40 NASB1995
Therefore if the whole church assembles together and all speak in tongues, and ungifted men or unbelievers enter, will they not say that you are mad? But if all prophesy, and an unbeliever or an ungifted man enters, he is convicted by all, he is called to account by all; the secrets of his heart are disclosed; and so he will fall on his face and worship God, declaring that God is certainly among you.
What is the outcome then, brethren? When you assemble, each one has a psalm, has a teaching, has a revelation, has a tongue, has an interpretation. Let all things be done for edification. If anyone speaks in a tongue, it should be by two or at the most three, and each in turn, and one must interpret; but if there is no interpreter, he must keep silent in the church; and let him speak to himself and to God. Let two or three prophets speak, and let the others pass judgment. But if a revelation is made to another who is seated, the first one must keep silent. For you can all prophesy one by one, so that all may learn and all may be exhorted; and the spirits of prophets are subject to prophets; for God is not a God of confusion but of peace, as in all the churches of the saints.
The women are to keep silent in the churches; for they are not permitted to speak, but are to subject themselves, just as the Law also says. If they desire to learn anything, let them ask their own husbands at home; for it is improper for a woman to speak in church. Was it from you that the word of God first went forth? Or has it come to you only?
If anyone thinks he is a prophet or spiritual, let him recognize that the things which I write to you are the Lord’s commandment. But if anyone does not recognize this, he is not recognized.
Therefore, my brethren, desire earnestly to prophesy, and do not forbid to speak in tongues. But all things must be done properly and in an orderly manner.
NASB1995: New American Standard Bible - NASB 1995