Sunan an-Nasa'i, Book 10, Hadith 52 (Nasa'i 830)

It was narrated that Abu Hurairah said:

"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?"'