Deuteronomy 8:5-6

5 Know then in your heart that as a parent disciplines a child so the Lord your God disciplines you.
6 Therefore keep the commandments of the Lord your God, by walking in his ways and by fearing him.