So to show that God knows the place of wisdom, he continues saying that he knows the universe of creatures. First he shows this as to the most elevated creatures under which all things are contained, and so he then says, "He sees the ends of the earth," which are the most excellent creatures in which the order of creatures terminates in ascending from lower creatures, and these are heavenly bodies and the heavenly spirits. Then he shows this as to the other creatures contained under them, like the elements, and so he then says, "and he sees everything which is under the heaven."
Source: Commentary on Job