Question: During prayer, a friend of mine joins his little toe with the toe of the person beside him. Some people say that this is an innovation (bid’ah). Please answer from the Qur’an and Hadith.
Answer: Straightening the rows during prayer is part of establishing the prayer, as narrated from Anas (may Allah be pleased with him) that the Messenger of Allah ﷺ said: “Straighten your rows, for the straightening of the rows is part of establishing the prayer.”
In another hadith, the Messenger of Allah ﷺ said:
“Establish the rows, align the shoulders, fill the gaps, be gentle in the hands of your brothers, and do not leave any gaps for Satan. Whoever joins a row, Allah will join him, and whoever breaks a row, Allah will break him.”
From these authentic (sahih) hadiths it is known that the worshippers have been commanded to form the rows properly, and commanded to fill the empty space that lies between two worshippers. If a worshipper does not stand with his shoulder and foot joined to the other worshipper, and leaves a gap between them, then he leaves a space for Satan.
When the Companions (may Allah be pleased with them) formed rows, they would join shoulder to shoulder and foot to foot with their companion. Therefore one should join the whole foot and the shoulder with the other worshipper.