Deuteronomy 18:21

21 You may say to yourselves, “How can we know when a message has not been spoken by the LORD?”

Deuteronomy 18:21 in Other Translations

KJV
21 And if thou say in thine heart, How shall we know the word which the LORD hath not spoken?
ESV
21 And if you say in your heart, 'How may we know the word that the LORD has not spoken?'--
NLT
21 “But you may wonder, ‘How will we know whether or not a prophecy is from the LORD ?’
MSG
21 You may be wondering among yourselves, "How can we tell the difference, whether it was God who spoke or not?" Here's how:
CSB
21 You may say to yourself, 'How can we recognize a message the Lord has not spoken?'

Deuteronomy 18:21 In-Context

19 I myself will call to account anyone who does not listen to my words that the prophet speaks in my name.
20 But a prophet who presumes to speak in my name anything I have not commanded, or a prophet who speaks in the name of other gods, is to be put to death.”
21 You may say to yourselves, “How can we know when a message has not been spoken by the LORD?”
22 If what a prophet proclaims in the name of the LORD does not take place or come true, that is a message the LORD has not spoken. That prophet has spoken presumptuously, so do not be alarmed.
Scripture quoted by permission.  Quotations designated (NIV) are from THE HOLY BIBLE: NEW INTERNATIONAL VERSION®.  NIV®.  Copyright © 1973, 1978, 1984, 2011 by Biblica.  All rights reserved worldwide.