Sunan Ibn Majah, Book 5, Hadith 159 (Ibn Majah 961)

It was narrated that Abu Hurairah said:

“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?’”