Deuteronomy 8:5

5 And you will consider in your heart, that, as a man chastens his son, so Yahweh your God chastens you.