Deuteronomy 8:5

Know then in your heart that, as a man disciplines his son, the Lord your God disciplines you.