Deuteronomy 13:3

3 thou dost not hearken unto the words of that prophet, or unto that dreamer of the dream, for Jehovah your God is trying you, to know whether ye are loving Jehovah your God with all your heart, and with all your soul;

Deuteronomy 13:3 Meaning and Commentary

Deuteronomy 13:3

Thou shall not hearken to the words of that prophet, or that
dreamer of dreams
Even though he does give the sign, and work the wonder; for it might be reasonably concluded there must be fallacy in him, and that neither he nor his miraculous sign could come from God, who would never send a person to enable him to do signs and wonders, to persuade men to believe and act contrary to a former declaration of his mind and will; to break a plain law of his, as in ( Deuteronomy 5:7-9 ) , this would be to contradict and deny himself; whatever therefore is contrary to a known law or established doctrine, either of law or Gospel, let it come from whom it will, or pretend to be confirmed by miracles, is not to be received; see ( Galatians 1:8 Galatians 1:9 ) ,

for the Lord your God proveth you, whether you love the Lord your God
with all your heart, and with all your soul;
for should they be prevailed upon by such a prophet to hearken to his doctrine, and embrace it, and act according to it, it would be a plain case that they did not cordially love the Lord, since they could so easily, and by such pretences, be drawn aside from the true worship of him, and serve other gods; on the other hand, it would be a proof of their sincere affection for God, and of their close and strict attachment to him, that notwithstanding such specious pretences made, and such miracles wrought, yet abode by him and his worship, and could not be wrought upon to forsake him and follow other gods and serve them; see ( 1 Corinthians 11:19 ) .

Deuteronomy 13:3 In-Context

1 `When there ariseth in your midst a prophet, or a dreamer of a dream, and he hath given unto thee a sign or wonder,
2 and the sign and the wonder hath come which he hath spoken of unto thee, saying, Let us go after other gods (which thou hast not known), and serve them,
3 thou dost not hearken unto the words of that prophet, or unto that dreamer of the dream, for Jehovah your God is trying you, to know whether ye are loving Jehovah your God with all your heart, and with all your soul;
4 after Jehovah your God ye walk, and Him ye fear, and His commands ye keep, and to His voice ye hearken, and Him ye serve, and to Him ye cleave.
5 `And that prophet, or that dreamer of the dream, is put to death, for he hath spoken apostacy against Jehovah your God (who is bringing you out of the land of Egypt, and hath ransomed you out of a house of servants), to drive you out of the way in which Jehovah thy God hath commanded thee to walk, and thou hast put away the evil thing from thy midst.
Young's Literal Translation is in the public domain.