Deuteronomy 13:3

King James Version Bible (KJV)
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.

Read Deuteronomy 13:3 in other translations