Horayos3: 1
כֹּהֵן מָשִׁיחַ שֶׁחָטָא וְאַחַר כָּךְ עָבַר מִמְּשִׁיחוּתוֹ, וְכֵן נָשִׂיא שֶׁחָטָא וְאַחַר כָּךְ עָבַר מִגְּדֻלָּתוֹ — כֹּהֵן מָשִׁיחַ מֵבִיא פָר, וְהַנָּשִׂיא מֵבִיא שָׂעִיר.
An Anointed Kohen who sinned, and then passed from his [position of] anointment; and similarly, a king who sinned, and then passed from his [position of] greatness —- the Anointed Kohen brings a bull, and the king brings a he-goat.