Deuteronomy 8:5

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

Read Deuteronomy 8:5 Using Other Translations

Thou shalt also consider in thine heart, that, as a man chasteneth his son, so the LORD thy God chasteneth thee.
Know then in your heart that, as a man disciplines his son, the LORD your God disciplines you.
Think about it: Just as a parent disciplines a child, the LORD your God disciplines you for your own good.