The Messenger of Allah ﷺ said, "When one of you prays, let him keep his sandals on, or place them between his feet, and not cause discomfort to others with them."
أن رسول الله ﷺ قال: إذا صلى أحدكم فليلبس نعليه، أو ليخلعهما بين رجليه، ولا يؤذي بهما غيره.
No references are available.
Ibn Khuzayma (1009) narrated it from Yunus bin Abdul-Ala, who reported that Ibn Wahb told them, that Iyad bin Abdullah Qurashi and others told them, from Saeed bin Abu Saeed Maqburi, from Abu Hurairah, who related the hadith. Ibn Hibban also narrated it from him in his Sahih (2183), and Hakim also narrated it (1/259) through the route of Abdullah bin Wahb, with the same wording. He said, "Sahih according to the standard of Muslim, though the two of them did not include it."However, Abu Dawud (655) narrated it through the route of Muhammad bin Walid, from Saeed bin Abu Saeed, from his father, from Abu Hurairah, from the Messenger of Allah ﷺ, who said, "When one of you prays and takes off his sandals, he should not harm anyone with them. Let him place them between his feet, or let him pray in them."Ibn Hibban narrated it in his Sahih (2182), and Hakim in Mustadrak (1/260), both through the route of Muhammad bin Walid, with the same wording. Hakim graded it sahih. Muhammad bin Walid is Zubaydi, one of the narrators relied upon by the two Shaykhs.I say, he added in it, "from his father." It has been established that Saeed bin Abu Saeed and his father both heard from Abu Hurairah, so perhaps he first heard it from his father, then later heard it from Abu Hurairah, and thus narrated the hadith in two forms. There is no need to accuse either Muhammad bin Walid or Iyad bin Abdullah Qurashi of error, for both are reliable, and as long as reconciliation is possible, there is no need to give preference to one over the other.As for what Ibn Majah (1432) narrated through the route of Abdullah bin Saeed bin Abu Saeed, from his father, from Abu Hurairah, "Keep your sandals on your feet, and if you take them off, place them between your feet. Do not put them on your right side, nor on the right side of your companion, nor behind you, for you would harm the one behind you," this is extremely daif, for Abdullah bin Saeed bin Abu Saeed was declared daif by Ibn Main, Abu Zura, Nasai, Hakim, Ibn Adi, and others. Hafiz said, "Matruk (abandoned)."