Jeremiah 23:16 Thus saith the LORD of hosts, Hearken not unto the words of the prophets that prophesy unto you: they make you vain: they speak a vision of their own heart, and not out of the mouth of the LORD.
So often preachers get an idea and try to find proof texts of their thoughts in the Bible. They speak but it is a vision of their own heart. Their thoughts do not come from the mouth of the Lord. You should not listen to that preacher.
When a pastor stands up to preach you should be able to take the Bible and clearly see that it is what God’s Word says. If it doesn’t follow the Scriptures then do not listen.
Always take your Bible with you to church. Always look up the passages. Make sure that what is being said is clearly what God is actually saying.
To do a good job of that you will need to be reading your Bible faithfully to have an idea what the Bible teaches.
Just be sure that what you are hearing isn’t just good but is true according to the Word of God!