Deuteronomy 13:3

Amplified Bible (AMP)
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 mind and all your soul [your entire being].

Read Deuteronomy 13:3 in other translations