Sayyiduna Abu Hurairah (may Allah be pleased with him) narrates: The Prophet Muhammad (peace and blessings be upon him) said: "Does the person who raises his head before the Imam (from bowing or prostration) not fear that Allah may turn his head into that of a donkey?"
Hadith Referenceصحیح ابن حبان / كتاب الصلاة / 2282
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «صحيح أبي داود» (634): ق.فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح، وأحد طرقه -وهو عبيد الله القواريري، عن حماد- على شرطهما، محمد بن زياد: هو الجمحي مولاهم أبو الحارث المدني.