Deuteronomy 8:2

2And you shall remember the whole way that the Lord your God has led you athese forty years in the wilderness, that he might humble you, btesting you cto know what was in your heart, dwhether you would keep his commandments or not.

Deuteronomy 13:3

3you shall not listen to the words of that prophet or that dreamer of dreams. For the Lord your God eis testing you, to know whether you love the Lord your God with all your heart and with all your soul.
Copyright information for ESV