Deuteronomy 8:2

2 Remember the long way that the Lord your God has led you these forty years in the wilderness, in order to humble you, testing you to know what was in your heart, whether or not you would keep his commandments.

Deuteronomy 8:2 In-Context

1 This entire commandment that I command you today you must diligently observe, so that you may live and increase, and go in and occupy the land that the Lord promised on oath to your ancestors.
2 Remember the long way that the Lord your God has led you these forty years in the wilderness, in order to humble you, testing you to know what was in your heart, whether or not you would keep his commandments.
3 He humbled you by letting you hunger, then by feeding you with manna, with which neither you nor your ancestors were acquainted, in order to make you understand that one does not live by bread alone, but by every word that comes from the mouth of the Lord.
4 The clothes on your back did not wear out and your feet did not swell these forty years.
5 Know then in your heart that as a parent disciplines a child so the Lord your God disciplines you.
New Revised Standard Version Bible, copyright 1989, Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.