Let’s look at this in context.
"Job 1: [6]
Now on a certain day when the sons of God came to stand before the Lord, Satan also was present among them. [7] And the Lord said to him: Whence comest thou? And he answered and said: I have gone round about the earth, and walked through it. [8] And the Lord said to him: Hast thou considered my servant Job, that there is none like him in the earth, a simple and upright man, and fearing God, and avoiding evil? [9] And Satan answering, said: Doth Job fear God in vain? [10] Hast not thou made a fence for him, and his house, and all his substance round about, blessed the works of his hands, and his possession hath increased on the earth?
Code:
[11] But stretch forth thy hand a little, and touch all that he hath, and see if he blesseth thee not to thy face. [12] Then the Lord said to Satan: Behold, all that he hath is in thy hand: only put not forth thy hand upon his person. And Satan went forth from the presence of the Lord."
Does this text say anything about them being in Heaven, at all? No, it doesn’t. When we go into a church to pray and worship God, do we consider ourselves to be ‘standing in front of the Lord’? Yes, we do. That’s what’s being talked about in this passage. The phrase, ‘The sons of God’, usually refers to the angels, or to the holy men of God (faithful church goers). It’s completely feasible that this was a scene where holy men, including Job, had gathered together (on earth) to worship God, like in a synagogue or maybe someone’s house. It’s not hard to imagine that Satan would also be present, to instigate doubts or other sinful thoughts to enter their minds while they pray. That’s why God asks him where he came from, or why he’s there. Then, he says that he wants permission to test Job’s faith in God, because up to that point he wasn’t allowed to do so; and God says, yes.