"Muhammad (ﷺ) said: 'Does the one who raises his head before the Imam not fear that Allah may turn his head into the head of a donkey?"'
Sunan an-Nasa'i Book 10, Hadith 52