score:8
You may be thinking of Zechariah:
Then he showed me Joshua the high priest standing before the angel of the LORD, and Satan standing at his right hand to accuse him. And the LORD said to Satan, "The LORD rebuke you, O Satan! The LORD who has chosen Jerusalem rebuke you! Is not this a brand plucked from the fire?"
Zechariah 3:1-2 (RSV)
Upvote:0
I think you're thinking about the story of Job but you have the story mixed a bit.