Sayyiduna Abu Hurairah (may Allah be pleased with him) reports that the Messenger of Allah (peace and blessings be upon him) said: "When any one of you is praying, if he removes his shoes, he should not cause harm to anyone with them, rather he should place them between his own feet."
Related hadith on this topic
Explanation & Benefits
Shaykh Umar Farooq Saeedi
655. Commentary:
➊ It is permissible to pray both after removing the shoes or while wearing them. However, occasionally praying with shoes on, with the intention of reviving the Sunnah and expressing opposition to the Jews, is a cause of reward and virtue. Nevertheless, care should be taken that this action does not become a cause of discord among the uninformed masses.
➋ It is forbidden (haram) to cause harm to any Muslim in any way.
Source: Sunan Abu Dawood – Commentary by Shaykh Umar Farooq Saeedi, Page: 655