Deuteronômio 8

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