Question:
What is the ruling on someone praying without shoes behind an imam who is wearing shoes, or someone wearing shoes praying behind an imam who is not wearing shoes?
Answer:
If the shoe is clean, then praying in it is also permissible. If some of the imam and the followers are wearing shoes and some are not, the prayer of all of them is valid.
❀ Abu Sa’id al-Khudri (may Allah be pleased with him) narrates:
“The Messenger of Allah ﷺ led the prayer wearing his shoes, and the Companions (may Allah be pleased with them) also prayed with their shoes on. Then, during the prayer, the Prophet ﷺ took off his shoes, and when the Companions saw this, they also took off their shoes. After the prayer, the Messenger of Allah ﷺ said: Why did you take off your shoes? The Companions said: O Messenger of Allah! We saw you take yours off, so we took them off. He said: Jibril informed me that there was impurity on the shoe. Before coming to the mosque, you should look at your shoes; if there is impurity on them, take them off, otherwise pray in them.”