What does Deuteronomy 8:5 mean?
Know in your heart that just like a parent disciplines their child, the Lord your God was disciplining you. Deuteronomy 8:5 - Modern Text Bible
(God's tough love in the desert was meant to shape them, not to harm them.)