Zechariah 3:1-5

1 He showed me Joshua the high priest standing before the angel of Yahweh, and Satan standing at his right hand to be his adversary.  2 Yahweh said to Satan, "Yahweh rebuke you, Satan! Yes, Yahweh who has chosen Jerusalem rebuke you! Isn't this a burning stick plucked out of the fire?"

3 Now Joshua was clothed with filthy garments, and was standing before the angel.  4 He answered and spoke to those who stood before him, saying, "Take the filthy garments off of him." To him he said, "Behold, I have caused your iniquity to pass from you, and I will clothe you with rich clothing."

5 I said, "Let them set a clean turban on his head."  So they set a clean turban on his head, and clothed him; and the angel of Yahweh was standing by.