The Book of Prayers (Kitab Al-Salat)
Muslim :: Book 4 : Hadith 859
Abu Huraira reported: The Messenger of Allah (may peace be upon him) 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?