Jeremiah 23:28

Let the prophet who has a dream retell it, but let him who has My word speak it truthfully. For what is straw compared to grain?” declares the Lord.
BSB · Berean Standard Bible
The prophet that hath a dream, let him tell a dream; and he that hath my word, let him speak my word faithfully. What is the chaff to the wheat? saith the Lord.

Note that hath a dream: Heb. with whom is, etc

KJV · King James Version
The prophet who has a dream, let him tell a dream; and he who has my word, let him speak my word faithfully. What is the straw to the wheat?” says the Lord.
WEB · World English Bible
The prophet that hath a dream, let him tell a dream; and he that hath my word, let him speak my word faithfully. What is the straw to the wheat? saith Jehovah.
ASV · American Standard Version

Related passages

From the Treasury of Scripture Knowledge, grouped by the word they explain.

that hath
Heb. with whom is. speak.
Proverbs 14:5; Matthew 24:45; Luke 12:42; 1 Corinthians 4:2; 2 Corinthians 2:17; 1 Timothy 1:12
What
That is, when the dreamers declare their dreams, and the true prophets faithfully declare their message, the difference between them will be as evident as that between "the chaff and the wheat."
1 Corinthians 3:12, 13