Deuteronomy 8:5

8:5 You shall consider in your heart that as a man chastens his son, so Yahweh your God chastens you.
-World English Bible

Other Translation

8:5 Thou shalt also consider in thine heart, that, as a man chasteneth his son, [so] the LORD thy God chasteneth thee.
-King James Version