Job 5:17
17. happy—not that the actual suffering is joyous; but the consideration of the righteousness of Him who sends it, and the end for which it is sent, make it a cause for thankfulness, not for complaints, such as Job had uttered (Heb 12:11). Eliphaz implies that the end in this case is to call back Job from the particular sin of which he takes for granted that Job is guilty. Paul seems to allude to this passage in Heb 12:5; so Jas 1:12; Pr 3:12. Eliphaz does not give due prominence to this truth, but rather to Job's sin. It is Elihu alone (Job 32:1-37:24) who fully dwells upon the truth, that affliction is mercy and justice in disguise, for the good of the sufferer.
Hebrews 12:7
7. In Heb 12:7, 8 the need of "chastening" or "discipline" is inculcated; in Heb 12:9, the duty of those to whom it is administered.
If—The oldest manuscripts read, "With a view to chastening (that is, since God's chastisement is with a view to your chastening, that is, disciplinary amelioration) endure patiently"; so Vulgate. ALFORD translates it as indicative, not so well, "It is for chastisement that ye are enduring." dealeth with you—"beareth Himself toward you" in the very act of chastening. what son is he—"What son is there" even in ordinary life? Much more God as to His sons (Isa 48:10; Ac 14:22). The most eminent of God's saints were the most afflicted. God leads them by a way they know not (Isa 42:16). We too much look at each trial by itself, instead of taking it in connection with the whole plan of our salvation, as if a traveller were to complain of the steepness and roughness of one turn in the path, without considering that it led him into green pastures, on the direct road to the city of habitation. The New Testament alone uses the Greek term for education (paideia), to express "discipline" or correction, as of a child by a wise father.