Jami` at-Tirmidhi, Book 6, Hadith 39 (Tirmidhi 582)

Abu Hurairah narrated:

"Muhammad said: 'Does not the one who raises his head before the Imam fear that Allah will transform his head into a donkey's head?'"