The next verse explains the manner of his cursing and continues, "And Job said: Let the day perish on which I was born, and the night which said, 'A man child is conceived.'" Note that although to exist and to live are desirable in themselves, yet to exist and to live in misery like this should be avoided, although one may freely sustain being miserable for some purpose. So a wretched life which is not ordered to some good end should not be chosen for any reason. The Lord speaks in this way in Matthew, "It would have been better for that man if he had never been born." (26:24) Reason alone app...rehends what good can be expected in some misery. The sensitive power does not perceive it. For example, the sense of taste perceives the bitterness of the medicine, but reason alone enjoys the purpose of health. If someone wanted to express the feeling of his sense of taste then he would denounce the medicine as evil, although reason would judge it to be good because of its purpose. So the blessed Job was able by his reason to perceive the misery which he suffered as certainly useful for some end. But the lower part of the soul influenced by sorrow would completely repudiate this adversity. Thus, life itself under such adversity was hateful to him. When something is hateful to us, we abhor everything by which we come to that thing. So in the inferior part of his soul, whose passion Job now intended to express, he hated both the birth and the conception by which he came into life and consequently both the day of his birth and the night of his conception according to the usage of attributing to time the good or evil which happens in that time. So therefore because Job repudiated life in adversity from the point of view of the senses, he wished that he had never been born or conceived. He expresses this saying, "Let the day perish on which I was born," saying in effect, "Would that I had never been born!" and "the night on which it was said," i.e. it could truly be said, "a man-child is conceived," that is, "Would that I had never been conceived!" He uses a fitting order here, for if birth does not take place, this does not preclude conception, but lack of conception precludes birth. He also fittingly ascribes the conception to night and birth to day, because according to the astrologers, a birth during the day is more praiseworthy since the principal star, the sun, shines over the land at that time; but a conception at night is more frequent. Jeremiah uses a similar way of speaking saying, "Cursed be the day I was born, may the night on which my mother bore me not be blessed." (20:14)
Source: Commentary on Job