The Quran commands believers to bow and prostrate and worship their Lord, and to prostrate and draw near. It describes the angels who prostrate and are not too proud to worship, and says that everything in the heavens and the earth bows to Allah in its own way. The Quran also tells Mary to be devout, prostrate and bow with those who bow. Muslims also note that the Bible describes Abraham, Moses and Jesus falling on their faces in prayer, which suggests that the posture is very old.
The Prophet Muhammad ﷺ said, 'I have been commanded to prostrate on seven parts: the forehead (and he pointed to his nose), the two hands, the two knees and the ends of the two feet.' So the whole body takes part. He also said that the closest a servant is to his Lord is while he is prostrating, so make plenty of supplication in it. In bowing, the Prophet ﷺ placed his hands on his knees and kept his back level.
The meaning is humility. The highest part of a person, the head and the face, is placed at the lowest point, in front of the One who has no equal, and kings and servants stand in the same line and bow together. Muslims do not prostrate to any human, to a picture or to the Kaaba: it is for Allah alone. Many Muslims describe the moment of prostration as the calmest part of the day, a place to put down pride and worries.