صحيح مسلم
From Sahih Muslim (Hadith 964):
Abu Huraira reported:The Messenger of Allah (ﷺ) said: Does the man who lifts his head before the Imam not fear that Allah may change his face into that of an ass?
Reference: Muslim 964