Abu Huraira reported:The Messenger of Allah (ﷺ) said: Does the man who lifts his head ahead of the Imam (from prostration) not fear that Allah may change his head into the head of an ass?
Hadith No. 963
Sahih Muslim