Zechariah 3:1-2

1 Then he showed me the high priest Joshua standing before the angel of the Lord, and Satan standing at his right hand to accuse him.
2 And the Lord said to Satan, "The Lord rebuke you, O Satan! The Lord who has chosen Jerusalem rebuke you! Is not this man a brand plucked from the fire?"