1 verses of the Young's Literal Translation have both "grave" and "when".
Job 3:22 Who are glad--unto joy, They rejoice when they find a grave.
In other translations: KJV WEB ASV Darby Webster DRC