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