What does Deuteronomy 8:2 mean?
Remember how the Lord your God led you through the desert for these forty years, humbling you and testing you to know what was in your heart—whether you'd keep His commands or not. Deuteronomy 8:2 - Modern Text Bible
(The wilderness years were a test of character and faithfulness, not just a journey.)