Remember that these forty years the LORD your God led you all the way in the wilderness, so that He might humble you and test you in order to know what was in your heart, whether or not you would keep His commandments.
Jewish Publication Society of America Version (JPS1917) - Deuteronomy 8:2 >And thou shalt remember all the way which the LORD thy God hath led thee these forty years in the wilderness, that He might afflict thee, to prove thee, to know what was in thy heart, whether thou wouldest keep His commandments, or no.