YHWH rebukes the friends who applied Proverbs-register wisdom to Job's situation.
This does not make Proverbs wrong. It makes retribution theology incomplete as a total account of human experience. The sages observed that wisdom tends to produce flourishing and folly tends to produce ruin — and they were right about the tendency.
Job is the canonical corrective for when the tendency fails, when the innocent suffer and the deed-consequence framework cannot explain it. For any engagement with Proverbs, the Job-Proverbs canonical tension is important intellectual honesty. The sentence collection commentaries that follow this prologue stand on their own observational terms; the generalizations are worth understanding precisely as generalizations.
But the prologue is the right place to name it once: Proverbs offers observational wisdom about how life tends to work. Job is what happens when those generalizations break down and someone demands a direct accounting from the God who made the moral order.