Deuteronomy 8:2
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.
Deuteronomy 8:13-14
8:13 when your cattle and flocks increase, when you have plenty of silver and gold, and when you have abundance of everything,
8:14 be sure you do not feel self-important and forget the Lord your God who brought you from the land of Egypt, the place of slavery,