Deuteronomy 8:2

EJ2000(i) 2 And thou shalt remember all the way by which the LORD thy God led thee these forty years in the wilderness to afflict thee and to prove thee to know what was in thine heart, whether thou would keep his commandments, or not.