Then he showed me Joshua1 the high priest standing before the angel of the LORD, and Satan2 standing at his right side to accuse him.
References for Zechariah 3:1
The LORD said to Satan, "The LORD rebuke you,3 Satan! The LORD, who has chosen4 Jerusalem, rebuke you! Is not this man a burning stick5 snatched from the fire?"6
References for Zechariah 3:2
Now Joshua was dressed in filthy clothes as he stood before the angel.
The angel said to those who were standing before him, "Take off his filthy clothes." Then he said to Joshua, "See, I have taken away your sin,7 and I will put rich garments8 on you."
References for Zechariah 3:4