Have the gates of death been revealed unto you? or have you seen the doors of the shadow of death?
All Commentaries on Job 38:17 Go To Job 38
Gregory The Dialogist
AD 604
29. For the gates of death are wicked thoughts: which we open to God, when we confess them with weeping in penitence. For He beholds them even when not confessed; but enters into them, when confessed. For He then in truth opens a way for Himself in the gates of death, when we have put aside evil thoughts, and He comes to us after confession. And they are called the gates of death for this reason, because the way to death is always opened through evil thoughts. Which is again repeated, when it is subjoined;
And hast thou seen the gloomy doors?
30. For the gloomy doors are the lurking evils of the mind, which can both exist within, and yet not be observed by another. Which yet the Lord beholds, when He destroys them by the secret look of grace. For it is written, The King Who sitteth in the throne of judgment, scattereth away all evil with His sight. [Prov. 20, 8] And because every vice contracts, and every virtue enlarges the mind, after the destruction of vices it is rightly subjoined, Hast thou considered the breadth of the earth? For did not virtue enlarge the mind, Paul would not say to the Corinthians, Be ye also enlarged, and be not yoked with unbelievers. [2 Cor. 6, 13. 14.]