Horayos2: 5
אֵין חַיָּבִין עַל שְׁמִיעַת הַקּוֹל, וְעַל בִּטּוּי שְׂפָתַיִם, וְעַל טֻמְאַת מִקְדָּשׁ וְקָדָשָׁיו, וְהַנָּשִׂיא כַּיּוֹצֵא בָהֶם; דִּבְרֵי רַבִּי יוֹסֵי הַגְּלִילִי. רַבִּי עֲקִיבָא אוֹמֵר: הַנָּשִׂיא חַיָּב בְּכֻלָּן חוּץ מִשְּׁמִיעַת הַקּוֹל, שֶׁהַמֶּלֶךְ לֹא דָן וְלֹא דָנִין אוֹתוֹ, [לֹא מֵעִיד וְלֹא מְעִידִין אוֹתוֹ].
They are not liable [to a sacrifice] for [the sin of] hearing the voice [of adjuration], nor for uttering [an oath] of the lips, nor for the tumah-contamination of the Temple or its consecrated articles. The king is like them; [these are] the words of R’ Yose HaGlili. R’ Akiva says: The king is liable for all of them except for hearing the voice [of adjuration], for the king may not judge nor be judged; he may not testify nor be testified [against].