Sayyiduna Abu Hurairah (may Allah be pleased with him) reports that the Noble Prophet (peace and blessings be upon him) said: "Does the person who raises his head before the Imam not fear that Allah may turn his head into the head of a donkey?"
Related hadith on this topic