Deuteronomy 8:2-3
8:2 Remember the whole way by which he has brought you these forty years through the desert so that he might, by humbling you, test you to see if you have it within you to keep his commandments or not.
8:3 So he humbled you by making you hungry and then feeding you with unfamiliar manna. He did this to teach you that humankind cannot live by bread alone, but also by everything that comes from the Lord’s mouth.
Deuteronomy 8:5
8:5 Be keenly aware that just as a parent disciplines his child, the Lord your God disciplines you.
Deuteronomy 8:16
8:16 fed you in the desert with manna (which your ancestors had never before known) so that he might by humbling you test you and eventually bring good to you.