Question: The questioner says: what is the ruling on praying with socks which emit a foul smell?
Answer: “By Allah, if there is a foul smell, then what is more deserving is to remove them. This is because the congregants will be harmed by this harmful smell, even you will be harmed. If there is a foul smell, then removing them is better and you should wash your hands. As for wearing them and there is a foul smell [emitting from them], then it will harm some of his neighbors who are in the row”.
[Taken from: https://www.sahab.net/forums/?showtopic=127039]
Translated by
Faisal Ibn Abdul Qaadir Ibn Hassan
Abu Sulaymaan