Abu Hurairah reported the Messenger of Allah ﷺ as saying; Does he who raises his head while the Imam is prostrating not fear that Allah may change his head into a donkey’s or his face into a donkey’s face.
This hadith also teaches us about fear - specifically fear of Allah - which can help keep us on track when it comes to following His commands and avoiding sinning against Him. We must always strive to be mindful of His greatness and power, so that we can stay away from any actions which would displease Him.