Sahih Muslim
427.01

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?

427.02

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?

427.03

This hadith has been narrated by Abu Huraira by another chain of transmitters except for the words narrated by Rabi' b. Muslim:" Allah may make his face like the face of an ass