Ask a trusted, godly friend who knows the Bible well about the statement. Listen to their explanation and be open to the possibility that you either misunderstood, or that the statement the pastor made is biblically correct and you’re the one whose thinking needs to adjust.
In choosing a “trusted, godly friend,” chose someone who you know is a friend to the pastor, and will exercise his or her own tongue to protect and love the pastor. Choose someone who is known for being eager to maintain the unity of the Spirit in the bond of peace. Do not speak to someone who would be tempted to suspect the pastor, or would delight in disunity, or would be naively led astray by doubts.
If you still have questions or concerns, then gently, humbly ask your pastor to explain what he meant.
After patiently hearing your pastor’s explanation of what he meant, you may find that you still disagree with what he said. If this happens, what you should probably do is humbly accept that you see things differently at this point, resolve to keep your disagreement to yourself, thank God for all the ways he has used this man’s teaching in the lives of many, and cheerfully continue to submit to your pastor’s leadership and profit from his teaching.
However, in rare cases, you might find that you disagree so strongly with something your pastor teaches, or that you disagree on a matter of such consequence, that it would hinder you from contentedly submitting to his leadership. In a case like this it may be best to quietly, lovingly find another church after discussing your intent to leave with the pastor.