Job 28:24 (ESV)

24 For he looks to the ends of the earth and sees everything under the heavens.

The word he is emphasized in the Hebrew. It is God (not Job’s friends or anyone else) who sees everything and therefore has all wisdom.