Deuteronomy 13:3

you shall not listen to the words of that prophet or dreamer. For the Lord your God is testing you, so that it may become clear whether or not you love him with all your heart and with all your soul

Other versions

King James Version

Thou shalt not hearken unto the words of that prophet, or that dreamer of dreams: for the LORD your God proveth you, to know whether ye love the LORD your God with all your heart and with all your soul.

English Standard Version

you shall not listen to the words of that prophet or that dreamer of dreams. For the LORD your God is testing you, to know whether you love the LORD your God with all your heart and with all your soul.

New International Version

you must not listen to the words of that prophet or dreamer. The LORD your God is testing you to find out whether you love him with all your heart and with all your soul.