After the adversity of blessed Job has been narrated, the text treats the patience Job showed in adversity. As evidence of what is said here know that there was a difference of opinion among the ancient philosophers as to corporeal goods and the passions of the soul. For the Stoics said that exterior goods were not goods of man and that there could be no sorrow for their loss in the soul of the wise man. But, the opinion of the Peripatetics was that some of the goods of man are truly exterior goods, though these are certainly not the principal ones. Nevertheless, they are like instruments orde...red to the principal good of man which is the good of the mind. Because of this, they conceded that the wise man is moderately sad in the losses of exterior goods, namely his reason is not so absorbed by sadness that he leaves righteousness. This opinion is the more true of the two and is in accord with the teaching of the Church as is clear from St. Augustine in his book, The City of God.
So Job followed this opinion and truly showed sorrow in adversity; yet this sadness was so moderated that it was subject to reason. The text therefore continues, "Then Job arose, and rent his robe," which is usually an indication of sadness among men. Note however that the text says, "Then", namely after he heard about the death of his children, so that he might seem more sad over their loss than the loss of his possessions. For it is characteristic of a hard and insensible heart to not grieve over dead friends, but it is characteristic of virtuous men to not have this grief in an immoderate way as St. Paul says in 1 Thessalonians, "But we would not have you ignorant, brethren, concerning those who are asleep, that you may not grieve as others do who have no hope." (4:13) This was true in the case of blessed Job and so the state of his mind appears in his exterior act. Since his reason stood upright, the text fittingly says that "Job arose" although men in grief usually prostrate themselves. For though he suffered grief, but not a grief which penetrated as far as disturbing his interior reason, he showed a sign of his sadness in exterior actions in two ways: namely as to what is outside the nature of the body, and so the text says, "he rent his robe"; and as to those things which proceed from the nature of the body, "he shaved his head," which among those who care for their hair, usually indicates grief. These two signs then fittingly correspond to the adversities mentioned, for the tearing of the robe corresponds to the loss of his possessions, and the cutting of the hair corresponds to the loss of his sons. Then the mind stands upright when it humbly is submitted to God. For each thing exists in a higher and more noble state to the extent that it stands firm in what perfects it more, like air when it is subject to light, and matter when it is subject to form. Therefore the fact that the mind of blessed Job was not dejected by sadness, but persisted in its righteousness, clearly shows that he humbly subjected himself to God. So the text continues, "and he fell on the ground, and worshipped," to show evidence for his devotion and humility.
Source: Commentary on Job