Sahih Muslim Book 4, Hadith Number 859.
Chapter : Command to observe prayer well, perfecting it, and devotion in it.
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?