“The Messenger of Allah (ﷺ) said: ‘Does not the one who raises his head before the Imam fear that Allah may turn his head into the head of a donkey?’”
Sunan Ibn Majah Book 5, Hadith 159