Anas bin Malik reported,

The Prophet ﷺ never removed his sandals during prayer except on one occasion, when the people also removed their sandals. The Prophet ﷺ asked, "Why did you remove your sandals?"They replied, "We saw you remove yours, so we removed ours."He said, "Jibreel عليه السلام informed me that there was filth on them."

Azami 2572

Hasan

عن أنس بن مالك قال

لم يخلع النبي ﷺ نعليه في الصلاة إلا مرة، فخلع القوم نعالهم، فقال النبي ﷺ: لم خلعتم نعالكم؟ قالوا: رأيناك خلعت فخلعنا فقال: إن جبريل عليه السلام أخبرني أن بها قذرا.

الأعظمي 2572حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
What one may pray in
Section
Prayer in sandals
Numbering
Jami al-Kamil 2572 (2nd edition)
Azami 2572