Deuteronomy 8:5

New American Standard Bible (NASB)
Thus you are to know in your heart that the Lord your God was disciplining you just as a man disciplines his son.

Read Deuteronomy 8:5 in other translations