וִיהוֹשֻׁ֕עַ הָיָ֥ה לָבֻ֖שׁ בְּגָדִ֣ים צוֹאִ֑ים וְעֹמֵ֖ד לִפְנֵ֥י הַמַּלְאָֽךְ׃
Now Joshua was clothed with filthy garments, and stood before the angel.
Read Jewish philosophy on Zechariah 3:3: Rambam's Guide for the Perplexed, Saadia Gaon, and classical Jewish philosophical sources, free online.