3 Gird up now thy loins like a man; for I will demand of thee, and answer thou me.
4 Where wast thou when I laid the foundations of the cearth? declare, if thou hast understanding.
5 Who hath laid the measures thereof, if thou knowest? or who hath stretched the line upon it?
6 Whereupon are the foundations thereof fastened? or who laid the corner stone thereof;
7 When the morning stars sang together, and all the sons of God shouted for Joy?
He was saying to Job
“Excuse me. I formed the Earth. I don’t answer to you”.
Here’s the Good News Version
Job 38:4-9 GNB
(4) Were you there when I made the world? If you know so much, tell me about it.
(5) Who decided how large it would be? Who stretched the measuring line over it? Do you know all the answers?
(6) What holds up the pillars that support the earth? Who laid the cornerstone of the world?
(7) In the dawn of that day the stars sang together, and the heavenly beings shouted for joy.
(8) Who closed the gates to hold back the sea when it burst from the womb of the earth?
(9) It was I who covered the sea with clouds and wrapped it in darkness.
Here is the Barnes explanation:
Where wast thou when I laid the foundations of the earth? - The first appeal is to the creation. The question here, Where wast thou? implies that Job was not present. He had not then an existence. He could not, therefore, have aided God, or counselled him, or understood what he was doing. How presumptuous, therefore, it was in one so short-lived to sit in judgment on the doings of him who had formed the world! How little could he expect to be able to know of him! The expression, laid the foundations of the earth, is taken from building an edifice. The foundations are first laid, and the super-structure is then reared. It is a poetic image, and is not designed to give any intimation about the actual process by which the earth was made, or the manner in which it is sustained.