“For He pays a man according to his work,
And makes him find it according to his way.
This is fundamentally a biblical principle; however, Job’s case proves that sometimes God allows evil to befall His exceptionally faithful children in order to bring glory to Himself and so that He might later bless the one who has suffered in even greater ways. God moves in mysterious ways. His ways are not our ways. He is so far above us that not everything He does can be reduced to a predictable finite formula. It actually makes logical sense that an omniscient, omnipresent, omnipotent God would not always make perfect sense to limited, weak, stationary, finite beings. He sees things from a completely different and much higher perspective. We are in the trees. He made the forest.
Elihu is right in principal; yet, totally wrong in context. He is speaking more than he knows and he is simply wrong based upon what we know about Job and what God thinks of Job. What damage is done to those who suffer by the blathering fool who ‘knows’ he is right. He has no true understanding and thus reveals his lack of wisdom with his hateful words.