Elihu spoke in Job 36:21 New International Version (NIV):
Beware of turning to evil, which you seem to prefer to affliction.
Christian Standard Bible
Be careful that you do not turn to iniquity, for that is why you have been tested by affliction.
Which version is more accurate? If CSB is correct, then apparently, Elihu, the mysterious speaker, told Job why he was afflicted.