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?” Now Joshua was standing before the angel, clothed with filthy garments. And the angel said to those who were standing before him, “Remove the filthy garments from him.” And to him he said, “Behold, I have taken your iniquity away from you, and I will clothe you with pure vestments.” And I said, “Let them put a clean turban on his head.” So they put a clean turban on his head and clothed him with garments. And the angel of the Lord was standing by. – Zechariah 3:1-5

In Zechariah 3:4-5 we see that Joshua’s iniquities are removed and he is made clean for service. God clothed Joshua in righteousness and takes away the filth. This righteousness was the righteousness of Christ!